#include <string>
#include <vector>
#include <sstream>
Go to the source code of this file.
Functions | |
bool | isEscaped (const std::string &str, std::string::size_type pos) |
Whether the character is escaped or not. | |
std::string | escape (const std::string str) |
Escape string. | |
std::string | unescape (const std::string str) |
Unescape string. | |
void | eraseHeadBlank (std::string &str) |
Erase the head blank characters of string. | |
void | eraseTailBlank (std::string &str) |
Erase the tail blank characters of string. | |
void | replaceString (std::string &str, const std::string from, const std::string to) |
Replace string. | |
std::vector< std::string > | split (const std::string &input, const std::string &delimiter) |
Split string by delimiter. | |
bool | toBool (std::string str, std::string yes, std::string no, bool default_value=true) |
Convert given string to bool value. | |
bool | isAbsolutePath (const std::string &str) |
Investigate whether the given string is absolute path or not. | |
bool | isURL (const std::string &str) |
Investigate whether the given string is URL or not. | |
template<class Printable> | |
std::string | otos (Printable n) |
Convert the given object to st::string. | |
template<typename To> | |
bool | stringTo (To &val, const char *str) |
std::vector< std::string > | unique_sv (std::vector< std::string > sv) |
std::string | flatten (std::vector< std::string > sv) |
char ** | toArgv (const std::vector< std::string > &args) |
|
Erase the head blank characters of string.
|
|
Erase the tail blank characters of string.
|
|
Escape string.
The following characters are converted. |
|
|
|
Investigate whether the given string is absolute path or not.
|
|
Whether the character is escaped or not. This operation returns true if the specified character is escaped, and if the specified character is not escaped, it returns false
|
|
Investigate whether the given string is URL or not.
|
|
Convert the given object to st::string.
|
|
Replace string.
|
|
Split string by delimiter.
|
|
|
|
|
|
Convert given string to bool value.
|
|
Unescape string.
The following characters are converted. |
|
|