関数 |
std::wstring | coil::string2wstring (std::string str) |
| string から wstring への変換
|
std::string | coil::wstring2string (std::wstring wstr) |
| wstring から string への変換
|
void | coil::toUpper (std::string &str) |
| 大文字への変換
|
void | coil::toLower (std::string &str) |
| 小文字への変換
|
int | coil::getlinePortable (std::istream &istr, std::string &line) |
| 入力ストリームから1行読み込む
|
bool | coil::isEscaped (const std::string &str, std::string::size_type pos) |
| 文字列がエスケープされているか判断する
|
std::string | coil::escape (const std::string str) |
| 文字列をエスケープする
|
std::string | coil::unescape (const std::string str) |
| 文字列のエスケープを戻す
|
void | coil::eraseBlank (std::string &str) |
| 文字列の空白文字を削除する
|
void | coil::eraseHeadBlank (std::string &str) |
| 文字列の先頭の空白文字を削除する
|
void | coil::eraseTailBlank (std::string &str) |
| 文字列の末尾の空白文字を削除する
|
void | coil::eraseBothEndsBlank (std::string &str) |
| 文字列の先頭・末尾の空白文字を削除する
|
std::string | coil::normalize (std::string &str) |
| 文字列を正規化する
|
unsigned int | coil::replaceString (std::string &str, const std::string from, const std::string to) |
| 文字列を置き換える
|
vstring | coil::split (const std::string &input, const std::string &delimiter, bool ignore_empty=false) |
| 文字列を分割文字で分割する
|
bool | coil::toBool (std::string str, std::string yes, std::string no, bool default_value=true) |
| 与えられた文字列をbool値に変換する
|
bool | coil::includes (const vstring &list, std::string value, bool ignore_case=true) |
| 文字列リスト中にある文字列が含まれるかどうかを判断する
|
bool | coil::includes (const std::string &list, std::string value, bool ignore_case=true) |
| 文字列リスト中にある文字列が含まれるかどうかを判断する
|
bool | coil::isAbsolutePath (const std::string &str) |
| 与えられた文字列が絶対パスかどうかを判断する
|
bool | coil::isURL (const std::string &str) |
| 与えられた文字列がURLかどうかを判断する
|
template<class Printable > |
std::string | coil::otos (Printable n) |
| 与えられたオブジェクトをstd::stringに変換
|
template<typename To > |
bool | coil::stringTo (To &val, const char *str) |
| 与えられたstd::stringをオブジェクトに変換
|
template<> |
bool | coil::stringTo< std::string > (std::string &val, const char *str) |
| 与えられた文字列をstd::stringに変換
|
vstring | coil::unique_sv (vstring sv) |
| 与えられた文字列リストから重複を削除
|
std::string | coil::flatten (vstring sv) |
| 与えられた文字列リストからCSVを生成
|
char ** | coil::toArgv (const vstring &args) |
| 与えられた文字列リストを引数リストに変換
|
std::string | coil::sprintf (char const *__restrict fmt,...) |
| 指定された書式に変換
|