ºÇ½ª¹¹¿·¡§ numeric96key 2012ǯ10·î09Æü(²Ð) 04:04:57ÍúÎò
ʸ»úʬ³ä´Ø¿ô¡¥Ç¤°Õ¤Î»ØÄꤷ¤¿Ê¸»ú¤Çʸ»úÎó¤òʬ³ä¤¹¤ë¡¥
boost::algorithm::is_any_of("/")¤ÎÉôʬ¤Ïʬ³ä¤¹¤ëʸ»ú¤Î»ØÄê¡Ê¾¤Ë¤â´Ø¿ô¤¬¤¢¤ë¡Ë¡¥
boost::algorithm::token_compress_on ¤Ïʬ³ä·ë²Ì¤Î³ÊǼÊýË¡(token_compress_off¤â¤¢¤ë)¡¥
// 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]¤Ë³ÊǼ¤µ¤ì¤ë¡¥
boost::algorithm::is_any_of("/")¤ÎÉôʬ¤Ïʬ³ä¤¹¤ëʸ»ú¤Î»ØÄê¡Ê¾¤Ë¤â´Ø¿ô¤¬¤¢¤ë¡Ë¡¥
boost::algorithm::token_compress_on ¤Ïʬ³ä·ë²Ì¤Î³ÊǼÊýË¡(token_compress_off¤â¤¢¤ë)¡¥
[»²¾È] http://d.hatena.ne.jp/scior/20100811/1281537296
½ÒÉô | ȽÊ̤¹¤ëʸ»ú |
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 | ÈÏ°Ï»ØÄê |
- ¥«¥Æ¥´¥ê¡§
- ³ØÌ䡦Íý·Ï
- Áí¹ç
¥¿¥°
¥³¥á¥ó¥È¤ò¤«¤¯