26 #ifndef __UTILS__UTILS_STRING_H__INCL__
27 #define __UTILS__UTILS_STRING_H__INCL__
61 bool IsNumber(
const char* str,
size_t len );
70 bool IsNumber(
const std::string& str );
147 void ListToINString(
const std::vector<int32>& ints, std::string& into,
const char* if_empty =
"" );
184 void SearchReplace( std::string& subject,
const std::string& search,
const std::string& replace );
192 void SplitPath(
const std::string& path, std::vector<std::string>& into );
const char * itoa(int64 num)
Convers num to string.
std::string GenerateKey(size_t length)
Generates random key.
void MakeUpperString(const char *source, char *target)
toupper() for strings.
void ListToINString(const std::vector< int32 > &ints, std::string &into, const char *if_empty="")
bool PyDecodeEscape(const char *str, Buffer &into)
Decodes string escapes into actual characters.
void SplitPath(const std::string &path, std::vector< std::string > &into)
Splits path to its components.
void MakeLowerString(const char *source, char *target)
tolower() for strings.
bool IsNumber(char c)
Checks whether character is a number.
Generic class for buffers.
bool IsHexNumber(char c)
Checks whether character is a hexadecimal number.
void SearchReplace(std::string &subject, const std::string &search, const std::string &replace)
Does search & replace on subject.
const std::string NULL_STRING
std::string to use where you would use NULL for const char*.
bool IsPrintable(char c)
Checks whether character is printable.