HPCToolkit
|
Functions | |
void | tokenize_char (const std::string &tokenstr, const char *delim, std::vector< std::string > &tokenvec) |
void | tokenize_str (const std::string &tokenstr, const char *delim, std::vector< std::string > &tokenvec) |
string | join (const std::vector< string > &tokenvec, const char *delim, size_t begIdx, size_t endIdx) |
long | toLong (const char *str, unsigned *endidx) |
uint64_t | toUInt64 (const char *str, unsigned *endidx) |
double | toDbl (const char *str, unsigned *endidx) |
string | toStr (const int x, int base) |
string | toStr (const unsigned x, int base) |
string | toStr (const int64_t x, int base) |
string | toStr (const uint64_t x, int base) |
string | toStr (const void *x, int GCC_ATTR_UNUSED base) |
string | toStr (const double x, const char *format) |
std::string | join (const std::vector< std::string > &tokenvec, const char *delim, size_t begIdx, size_t endIdx) |
long | toLong (const std::string &str, unsigned *endidx=NULL) |
uint64_t | toUInt64 (const std::string &str, unsigned *endidx=NULL) |
double | toDbl (const std::string &str, unsigned *endidx=NULL) |
std::string | toStr (const void *x, int base=16) |
Variables | |
static char | buf [32] |
std::string StrUtil::join | ( | const std::vector< std::string > & | tokenvec, |
const char * | delim, | ||
size_t | begIdx, | ||
size_t | endIdx | ||
) |
string StrUtil::join | ( | const std::vector< string > & | tokenvec, |
const char * | delim, | ||
size_t | begIdx, | ||
size_t | endIdx | ||
) |
|
inline |
double StrUtil::toDbl | ( | const char * | str, |
unsigned * | endidx | ||
) |
void StrUtil::tokenize_char | ( | const std::string & | tokenstr, |
const char * | delim, | ||
std::vector< std::string > & | tokenvec | ||
) |
void StrUtil::tokenize_str | ( | const std::string & | tokenstr, |
const char * | delim, | ||
std::vector< std::string > & | tokenvec | ||
) |
|
inline |
long StrUtil::toLong | ( | const char * | str, |
unsigned * | endidx | ||
) |
std::string StrUtil::toStr | ( | const void * | x, |
int | base = 16 |
||
) |
std::string StrUtil::toStr | ( | const int | x, |
int | base | ||
) |
std::string StrUtil::toStr | ( | const unsigned | x, |
int | base | ||
) |
Definition at line 262 of file StrUtil.cpp.
std::string StrUtil::toStr | ( | const int64_t | x, |
int | base | ||
) |
Definition at line 289 of file StrUtil.cpp.
std::string StrUtil::toStr | ( | const uint64_t | x, |
int | base | ||
) |
Definition at line 312 of file StrUtil.cpp.
string StrUtil::toStr | ( | const void * | x, |
int GCC_ATTR_UNUSED | base | ||
) |
Definition at line 335 of file StrUtil.cpp.
std::string StrUtil::toStr | ( | const double | x, |
const char * | format | ||
) |
Definition at line 343 of file StrUtil.cpp.
|
inline |
uint64_t StrUtil::toUInt64 | ( | const char * | str, |
unsigned * | endidx | ||
) |
|
static |
Definition at line 240 of file StrUtil.cpp.