* Returns the file component of a path. See basename(3) for details. * * @param path The full path. * @returns The filename. */
| 269 | * @returns The filename. |
| 270 | */ |
| 271 | String Utility::BaseName(const String& path) |
| 272 | { |
| 273 | return boost::filesystem::path(path.Begin(), path.End()).filename().string(); |
| 274 | } |
| 275 | |
| 276 | /** |
| 277 | * Null deleter. Used as a parameter for the shared_ptr constructor. |