#include "langedge/win_support.hpp"
#include <string>
#include <vector>
strsplit.hppのインクルード依存関係図

このグラフは、どのファイルから直接、間接的にインクルードされているかを示しています。

ネームスペース | |
| namespace | langedge |
関数 | |
| void | strSplit_stripSpaces (std::string &str, const std::string &spaces) |
| void | strSplit_copySubstr (std::vector< std::string > &sv, const std::string &str, const std::string &spaces) |
| std::vector< std::string > | strSplit (const std::string &str, const std::string &delims, const std::string &spaces=" \t\r\n") |
| 文字列をデリミタで分解する. | |
| std::string | findToken (char **strPtr, const std::string &delims, const std::string &spaces=" \t\r\n") |
| 文字列からトークンを取り出す. | |
|
||||||||||||
|
|
|
||||||||||||||||
|
|
|
||||||||||||||||
|
文字列をデリミタで分解する. std::stringを指定されたデリミタで分解し、トークンの列を得る。 strtok() の一括版ともいえるが、strtok() と異なり元の文字列は破壊されない。
デリミタ指定にスペース(0x20)が含まれている場合は、(別種も含め)連続したデリミタを 1つのものとして扱う。たとえば、デリミタが トークンの先頭または末尾に空白文字がある場合、それが spaces で指定される文字種に 含まれるならば、除去される。
|
|
||||||||||||||||
|
文字列からトークンを取り出す. strtok() の安全版。指定されたデリミタに従い、与えられた文字列の最初のトークンを見つける。 見つけたトークンは戻値として返し、次の解析開始位置を引数で返す。
|
1.4.2