OpenRTM-aist  1.2.1
名前空間 | 型定義 | 関数
stringutil.h ファイル
#include <string>
#include <vector>
#include <map>
#include <sstream>
#include <cassert>
#include <errno.h>
#include <cstdlib>
#include <stdint.h>
stringutil.h の依存先関係図:
被依存関係図:

[ソースコード]

名前空間

 coil
 Common Object Interface Layer.
 

型定義

typedef std::vector< std::string > coil::vstring
 
typedef std::map< std::string, std::string > coil::mapstring
 

関数

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かどうかを判断する [詳解]
 
bool coil::isIPv4 (const std::string &str)
 
bool coil::isIPv6 (const std::string &str)
 
coil::mapstring coil::urlparam2map (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に変換 [詳解]
 
template<>
bool coil::stringTo< bool > (bool &val, const char *str)
 与えられた文字列リストから重複を削除 [詳解]
 
template<class T >
std::string coil::ptrToHex (T *n)
 ポインタを16進数文字列に変換する [詳解]
 
template<class T >
bool coil::hexToPtr (T *&ptr, const std::string str)
 16進数文字列をポインタに変換する [詳解]
 
vstring coil::unique_sv (vstring sv)
 与えられた文字列リストから重複を削除 [詳解]
 
std::string coil::flatten (vstring sv, std::string delimiter=", ")
 与えられた文字列リストからCSVを生成 [詳解]
 
char ** coil::toArgv (const vstring &args)
 与えられた文字列リストを引数リストに変換 [詳解]
 
std::string coil::sprintf (char const *__restrict fmt,...)
 指定された書式に変換 [詳解]
 
std::string coil::replaceEnv (std::string str)
 文字列中の環境変数を置き換える [詳解]