// boost::algorithm::split(result, str, pred, token_compress) std::vector<std::string> result; std::string input; boost::algorithm::split( reult, input, boost::algorithm::is_any_of("./"),//'.','/'で分割する. boost::algorithm::token_compress_on);これで[/]で[input]を分割した結果が[result]に格納される.
述部 | 判別する文字 |
is_any_of | 任意の文字 |
is_digit | 数字(0-9) |
is_alpha | 英字(a-z,A-Z) |
is_lower | 小文字(a-z) |
is_upper | 大文字(A-Z) |
is_alnum | 英数字(0-9,a-z,A-Z) |
is_graph | 記号文字(0x21-0x7e) |
is_cntrl | 制御文字(0x00-0x1f,0x7f) |
is_space | 空白(0x20,\t,\n,\f,\r,\v) |
is_punct | 句読点等(記号文字∩英数字以外) |
is_xdigit | 16進表記に使える文字(0-9,a-f,A-F) |
is_from_range | 範囲指定 |