Changeset 460 for cpp/common/stl-util.cpp
- Timestamp:
- 02/03/16 22:59:30 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/common/stl-util.cpp
r382 r460 151 151 } 152 152 153 string stripFileDir(const string& filename) 154 { 155 size_t sep = filename.rfind(PATH_SEPARATOR_CHAR); 156 if (sep == string::npos) return filename; 157 return filename.substr(sep+1); 158 } 159 153 160 string getFileExt(const string& filename) 154 161 {
Note: See TracChangeset
for help on using the changeset viewer.