--------------------------------------------------------------------
| 167 | |
| 168 | // -------------------------------------------------------------------- |
| 169 | std::string VisMFBaseName(const std::string& filename) { |
| 170 | BL_ASSERT(filename[filename.length() - 1] != '/'); |
| 171 | if(const char *slash = strrchr(filename.c_str(), '/')) { |
| 172 | return std::string(slash + 1); |
| 173 | } else { |
| 174 | return filename; |
| 175 | } |
| 176 | } |
| 177 | |
| 178 | |
| 179 | // -------------------------------------------------------------------- |
no test coverage detected