Changeset 460 for cpp/common/stl-util.h


Ignore:
Timestamp:
02/03/16 22:59:30 (8 years ago)
Author:
Maciej Komosinski
Message:

Added a function to strip the path component from filename

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/common/stl-util.h

    r286 r460  
    4646string getFileExt(const string& filename); // get extension (starting with ".") from filename
    4747string getFileDir(const string& filename); // get path component excluding filename ("" if no dir in file)
     48string stripFileDir(const string& filename); // strip path component from filename
    4849
    4950
Note: See TracChangeset for help on using the changeset viewer.