|
LIBTHEMIS
|
文字列變換クラス [詳解]
#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) |
| 大文字變換 [詳解] | |
文字列變換クラス
| 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 | 變換元コード名 |
|
inline |
解體子
| std::string themis::StringConverter::convert | ( | const std::string & | src | ) |
文字列の變換
文字列srcを文字コード變換した文字列を取得する。
|
static |
小文字變換
文字列sのうち英字大文字を英字小文字に置換した文字列を取得する。
|
static |
大文字變換
文字列sのうち英字小文字を英字大文字に置換した文字列を取得する。
1.8.14