#include <string>
#include <vector>
#include <sstream>
関数 | |
bool | isEscaped (const std::string &str, std::string::size_type pos) |
文字列がエスケープされているか判断する. | |
std::string | escape (const std::string str) |
文字列をエスケープする. | |
std::string | unescape (const std::string str) |
文字列のエスケープを戻す. | |
void | eraseHeadBlank (std::string &str) |
文字列の先頭の空白文字を削除する. | |
void | eraseTailBlank (std::string &str) |
文字列の末尾の空白文字を削除する. | |
void | replaceString (std::string &str, const std::string from, const std::string to) |
文字列を置き換える. | |
std::vector< std::string > | split (const std::string &input, const std::string &delimiter) |
文字列を分割文字で分割する. | |
bool | toBool (std::string str, std::string yes, std::string no, bool default_value=true) |
与えられた文字列をbool値に変換する. | |
bool | isAbsolutePath (const std::string &str) |
与えられた文字列が絶対パスかどうかを判断する. | |
bool | isURL (const std::string &str) |
与えられた文字列がURLかどうかを判断する. | |
template<class Printable> | |
std::string | otos (Printable n) |
与えられたオブジェクトをstd::stringに変換. | |
std::vector< std::string > | unique_sv (std::vector< std::string > sv) |
std::string | flatten (std::vector< std::string > sv) |
|
文字列の先頭の空白文字を削除する.
|
|
文字列の末尾の空白文字を削除する.
|
|
文字列をエスケープする.
次の文字をエスケープシーケンスに変換する。 |
|
|
|
与えられた文字列が絶対パスかどうかを判断する.
|
|
文字列がエスケープされているか判断する. 指定した文字がエスケープされていればtrue、されていなければfalseを返す。
|
|
与えられた文字列がURLかどうかを判断する.
|
|
与えられたオブジェクトをstd::stringに変換.
|
|
文字列を置き換える.
|
|
文字列を分割文字で分割する.
|
|
与えられた文字列をbool値に変換する.
|
|
文字列のエスケープを戻す.
次のエスケープシーケンスを文字に変換する。 |
|
|