LIBTHEMIS
公開メンバ関数 | 静的公開メンバ関数 | 全メンバ一覧
themis::StringConverter クラス

文字列變換クラス [詳解]

#include <strconv.h>

公開メンバ関数

 StringConverter (const std::string &tocode, const std::string &fromcode)
 構築子 [詳解]
 
 ~StringConverter ()
 解體子 [詳解]
 
std::string convert (const std::string &src)
 文字列の變換 [詳解]
 

静的公開メンバ関数

static std::string toLower (const std::string &s)
 小文字變換 [詳解]
 
static std::wstring toLower (const std::wstring &ws)
 大文字變換 [詳解]
 

詳解

文字列變換クラス

構築子と解体子

◆ StringConverter()

themis::StringConverter::StringConverter ( const std::string &  tocode,
const std::string &  fromcode 
)

構築子

fromcodeからtocodeに變換する文字列變換オブジェクトを構築する。 コード名はiconv_open()に與へるもの。 例へばUTF-8、SHIFT-JIS、SHIFT_JIS、EUC-JP、EUCJP、ISO-2022-JPなど。

引数
tocode變換先コード名
fromcode變換元コード名

◆ ~StringConverter()

themis::StringConverter::~StringConverter ( )
inline

解體子

関数詳解

◆ convert()

std::string themis::StringConverter::convert ( const std::string &  src)

文字列の變換

文字列srcを文字コード變換した文字列を取得する。

◆ toLower() [1/2]

std::string themis::StringConverter::toLower ( const std::string &  s)
static

小文字變換

文字列sのうち英字大文字を英字小文字に置換した文字列を取得する。

◆ toLower() [2/2]

std::wstring themis::StringConverter::toLower ( const std::wstring &  ws)
static

大文字變換

文字列sのうち英字小文字を英字大文字に置換した文字列を取得する。


このクラス詳解は次のファイルから抽出されました: