|
| static int | misc::stricmp (char const *s1, char const *s2) |
| |
| static int | misc::strnicmp (char const *s1, char const *s2, size_t n) |
| |
| static int | misc::stricmp (std::string_view const &s1, std::string_view const &s2) |
| |
| static char const * | misc::stristr (const char *haystack, const char *needle) |
| |
| std::vector< std::string_view > | misc::splitLinesV (std::string_view const &str) |
| |
| std::vector< std::string_view > | misc::splitLinesV (std::vector< char > const &ba) |
| |
| std::vector< std::string_view > | misc::splitLinesKeepNewLineV (std::string_view const &str) |
| |
| std::vector< std::string > | misc::splitLines (std::string_view const &str) |
| |
| std::vector< std::string_view > | misc::splitWords (std::string_view const &text) |
| | 文字列を単語に分割する More...
|
| |
| std::vector< std::string_view > | misc::split (std::string_view const &sv, char sep) |
| |
| std::string | misc::filename (std::string const &path) |
| |
| bool | misc::starts_with (const std::string_view &str, const std::string_view &with) |
| | 文字列が指定の文字列で始まるか判定する More...
|
| |
| bool | misc::starts_with (const std::string_view &str, char with) |
| |
| bool | misc::ends_with (const std::string_view &str, const std::string_view &with) |
| | 文字列が指定の文字列で終わるか判定する More...
|
| |
| bool | misc::ends_with (const std::string_view &str, char with) |
| |
| std::string | misc::mid (std::string const &str, int start, int length=-1) |
| | 文字列の一部分を取得する More...
|
| |
| std::string | misc::replace_backslash_to_slash (std::string_view const &in) |
| | バックスラッシュをスラッシュに置換する More...
|
| |
| std::string | misc::normalizePathSeparator (std::string const &str) |
| | パスの区切り文字を正規化する More...
|
| |
| void | misc::dump (const uint8_t *ptr, size_t len) |
| | メモリダンプを16進数で表示する More...
|
| |
| bool | misc::isText (std::string const &mimetype) |
| | バイナリデータの内容をヘキサでダンプする More...
|
| |
| bool | misc::isImage (std::string const &mimetype) |
| | MIMEタイプが画像ファイルを表すか判定する More...
|
| |
| bool | misc::isSVG (std::string const &mimetype) |
| | MIMEタイプがSVG画像を表すか判定する More...
|
| |
| bool | misc::isPSD (std::string const &mimetype) |
| | MIMEタイプがPhotoshopファイルを表すか判定する More...
|
| |
| bool | misc::isPDF (std::string const &mimetype) |
| | MIMEタイプがPDFファイルを表すか判定する More...
|
| |
| std::string | misc::makeProxyServerURL (std::string text) |
| | プロキシサーバーURLを正規化する More...
|
| |
| bool | misc::isExecutable (const std::string &cmd) |
| | ファイルが実行可能か判定する More...
|
| |
| bool | misc::isValidMailAddress (std::string const &email) |
| |
| std::string_view | misc::trimmed (std::string_view const &s) |
| | 文字列の両端から空白文字を取り除く More...
|
| |
| std::string_view | misc::trimQuotes (std::string_view s) |
| | 文字列の両端から空白文字と引用符を取り除く More...
|
| |
| std::string_view | misc::trimNewLines (std::string_view s) |
| | 文字列の両端から改行文字を取り除く More...
|
| |
| std::string | misc::bin_to_hex_string (const void *begin, const void *end) |
| | バイナリデータを16進数文字列に変換する More...
|
| |
| std::vector< uint8_t > | misc::hex_string_to_bin (std::string_view const &s, const char *sep=nullptr) |
| | 16進数文字列をバイナリデータに変換する More...
|
| |
| int | misc::compare (uint8_t const *a, size_t n, uint8_t const *b, size_t m) |
| | 2つのバイナリデータを比較する More...
|
| |
| int | misc::compare (std::vector< uint8_t > const &a, std::vector< uint8_t > const &b) |
| | 2つのバイトベクターを比較する More...
|
| |
| std::string | misc::toLower (std::string_view const &s) |
| |
| std::string | misc::toUpper (std::string_view const &s) |
| |
| static std::vector< std::string > | misc::vector_string (std::vector< std::string_view > const &v) |
| |
| template<typename T > |
| static T | misc::toi (std::string_view const &s, size_t *consumed=nullptr) |
| |
| static void | misc::append (std::vector< char > *out, char const *ptr, size_t len) |
| |
| static void | misc::append (std::vector< char > *out, char c) |
| |
| static void | misc::append (std::vector< char > *out, std::string_view const &v) |
| |
| std::string | misc::strip_vt (std::string_view const &s) |
| | VTシーケンスを取り除く More...
|
| |
| std::string | misc::getProgram (std::string const &cmdline) |
| |