OpenMS
Loading...
Searching...
No Matches
OpenMS::PathUtils Namespace Reference

Functions

std::string basename (const std::string &file)
 Return the basename using either slash style on every platform.
 

Function Documentation

◆ basename()

std::string basename ( const std::string &  file)
inline

Return the basename using either slash style on every platform.

Parameters
[in]filePath to inspect without filesystem access or normalization.
Returns
The part after the last slash, or the entire string without a slash.