• Mikaël Salson's avatar
    Tools: extract_basename() function · 9e39f012
    Mikaël Salson authored
    Extracts the basename of a path. There is a basename() function in C but takes char *
    (not even const char*), which is not convenient with string in C++.
    And basename() doesn't remove extension.
    
    Unit tests added.
    9e39f012
tools.cpp 4.21 KB