| 262 | } |
| 263 | |
| 264 | BString Fs::getFileNameFromPath(const BString& path) { |
| 265 | int pos = path.lastIndexOf('/'); |
| 266 | if (pos==-1) { |
| 267 | return path; |
| 268 | } |
| 269 | return path.substr(pos+1); |
| 270 | } |
| 271 | |
| 272 | BString Fs::getFileNameFromNativePath(const BString& path) { |
| 273 | int pos = path.lastIndexOf(Fs::nativePathSeperator); |
nothing calls this directly
no test coverage detected