Vis 2
Kinetic Visualization for 3D shape and structure
 All Classes Namespaces Functions Pages
Static Public Member Functions | List of all members
StringUtil Class Reference

#include <StringUtil.h>

Static Public Member Functions

static void Tokenize (const std::string &str, std::vector< std::string > *tokens, const std::string &delim=" ")
 
static std::string GetBasePath (const std::string &str)
 
static std::string GetFileName (const std::string &str)
 
static std::string GetFileNameWithoutExtension (const std::string &str)
 
static std::string ToLowerCase (const std::string &str)
 

Detailed Description

Static methods for string processing

Member Function Documentation

string StringUtil::GetBasePath ( const std::string &  str)
static

Returns str until and including the last occurrence of \ or /, or the empty string if there is none

string StringUtil::GetFileName ( const std::string &  str)
static

Returns str from after the last occurrence of \ or /, or the whole string if there is none

string StringUtil::GetFileNameWithoutExtension ( const std::string &  str)
static

Returns str from after the last occurrence of \ or / until the last occurrence of '.'

void StringUtil::Tokenize ( const std::string &  str,
std::vector< std::string > *  tokens,
const std::string &  delim = " " 
)
static

Splits str into substrings by the delimiter delim. Substrings are pushed back on tokens

string StringUtil::ToLowerCase ( const std::string &  str)
static

Transforms a string to lower case


The documentation for this class was generated from the following files: