摘要:
#include <boost\cast.hpp>#include <boost\lexical_cast.hpp>signed char c = boost::numeric_cast<signed char>(97);int ii = boost::lexical_cast<int>("127");std::string s = boost::lexical_cast<std::string>(97); 阅读全文
posted @ 2011-05-02 16:00
袁晓平
阅读(1424)
评论(0)
推荐(0)
摘要:
#include <regex>#include <list>对wchar_t*字符串的search调用方法:boost::wcmatch match; boost::wregex reg(L"\\d{3}你"); boost::regex_search(L"345你好啊!", match, reg); bool mt0 = match[0].matched; bool mt1 = match[1].matched; bool mt2 = match[2].matched; int ln = match.length();对std 阅读全文
posted @ 2011-05-02 15:57
袁晓平
阅读(797)
评论(0)
推荐(0)
浙公网安备 33010602011771号