mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-27 14:24:40 +00:00
Add convenient helper to get suffix of the file
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47397 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -266,6 +266,14 @@ namespace sys {
|
||||
/// @brief Get the base name of the path
|
||||
std::string getBasename() const;
|
||||
|
||||
/// This function strips off the path and basename(up to and
|
||||
/// including the last dot) of the file or directory name and
|
||||
/// returns just the suffix. For example /a/foo.bar would cause
|
||||
/// this function to return "bar".
|
||||
/// @returns std::string containing the suffix of the path
|
||||
/// @brief Get the suffix of the path
|
||||
std::string getSuffix() const;
|
||||
|
||||
/// Obtain a 'C' string for the path name.
|
||||
/// @returns a 'C' string containing the path name.
|
||||
/// @brief Returns the path as a C string.
|
||||
|
Reference in New Issue
Block a user