文字列の操作等
[詳細]
#include <vector>
#include <string>
#include <sstream>
ソースコードを見る。
関数 |
int | convertStrToVal (std::string m_str) |
| セルの番号を数値に変換する関数
|
std::string | Replace (std::string String1, std::string String2, std::string String3) |
| 文字を置換する関数
|
std::string | MarshalString (System::String^s) |
| System::Stringをstd::stringに変換する関数
|
std::vector< std::string > | split (const std::string &str, const std::string &delim) |
| 文字列を特定の文字で分割する関数
|
template<typename T > |
T | string2binary (const std::string &text, int base) |
| 文字列を数値に変換する関数
|
説明
関数
int convertStrToVal |
( |
std::string |
m_str | ) |
|
セルの番号を数値に変換する関数
- 引数:
-
- 戻り値:
- 対応する数値
std::string MarshalString |
( |
System::String^ |
s | ) |
|
System::Stringをstd::stringに変換する関数
- 引数:
-
- 戻り値:
- 変換後の文字列
std::string Replace |
( |
std::string |
String1, |
|
|
std::string |
String2, |
|
|
std::string |
String3 |
|
) |
| |
文字を置換する関数
- 引数:
-
String1 | 変換元の文字列 |
String2 | 置換前の文字 |
String3 | 置換後の文字 |
- 戻り値:
- 変換後の文字列
std::vector<std::string> split |
( |
const std::string & |
str, |
|
|
const std::string & |
delim |
|
) |
| |
文字列を特定の文字で分割する関数
- 引数:
-
- 戻り値:
template<typename T >
T string2binary |
( |
const std::string & |
text, |
|
|
int |
base |
|
) |
| |
文字列を数値に変換する関数
- 引数:
-
- 戻り値:
- 変換後の数値