shapeworks::StringUtils
String utility functions.
#include <StringUtils.h>
Public Functions
Name | |
---|---|
std::string | removeExtension(std::string const & filename) |
std::string | getPath(std::string const & filename) |
std::string | getFilename(std::string const & pathname) Remove path from filename and return. |
std::string | getBaseFilenameWithoutExtension(std::string const & pathname) Get just the filename without path and without extension. |
std::string | toLower(std::string s) |
bool | hasSuffix(std::string const & filename, std::string const & suffix) |
std::vector< std::string > | getFileNamesFromPaths(const std::vector< std::string > & paths) |
std::string | getFileNameWithoutExtension(std::string path) TODO: is this a duplicate of removeExtension? |
Public Functions Documentation
function removeExtension
static std::string removeExtension(
std::string const & filename
)
function getPath
static std::string getPath(
std::string const & filename
)
function getFilename
static std::string getFilename(
std::string const & pathname
)
Remove path from filename and return.
function getBaseFilenameWithoutExtension
static std::string getBaseFilenameWithoutExtension(
std::string const & pathname
)
Get just the filename without path and without extension.
function toLower
static std::string toLower(
std::string s
)
function hasSuffix
static bool hasSuffix(
std::string const & filename,
std::string const & suffix
)
function getFileNamesFromPaths
static std::vector< std::string > getFileNamesFromPaths(
const std::vector< std::string > & paths
)
function getFileNameWithoutExtension
static std::string getFileNameWithoutExtension(
std::string path
)
TODO: is this a duplicate of removeExtension?
Updated on 2022-03-31 at 09:51:19 -0600