PowerPointRTC  0.5.0
 全て クラス ファイル 関数 変数
構成 | 関数
SubFunction.h

文字列の操作等 [詳細]

#include <vector>
#include <string>
#include <sstream>

ソースコードを見る。

構成

class  TreeObject
 RTCのデータポートのツリーの各オブジェクトクラス [詳細]

関数

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 >
string2binary (const std::string &text, int base)
 文字列を数値に変換する関数

説明

文字列の操作等


関数

int convertStrToVal ( std::string  m_str)

セルの番号を数値に変換する関数

引数:
m_strセルの番号(アルファベット)
戻り値:
対応する数値
std::string MarshalString ( System::String^  s)

System::Stringをstd::stringに変換する関数

引数:
s変換前の文字列
戻り値:
変換後の文字列
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 
)

文字列を特定の文字で分割する関数

引数:
str分割前の文字列
delim分割する文字
戻り値:
template<typename T >
T string2binary ( const std::string &  text,
int  base 
)

文字列を数値に変換する関数

引数:
text変換後の文字列
base
戻り値:
変換後の数値