C++ Windows Unicode REGEX (standard) -
i wrote piece of code regex matching of strings. regular ascii code not unicode.
std::string buffer; /* snip */ const std::tr1::regex rx("([3-9]{1})"); std::tr1::match_results<std::string::const_iterator> res; std::tr1::regex_search(buffer, res, rx); do have set locales or whatever work? tried no success:
std::wstring buffer; /* snip */ const std::tr1::wregex rx("([3-9]{1})"); std::tr1::match_results<std::wstring::const_iterator> res; std::tr1::regex_search(buffer, res, rx); any idea simple solution achieve this?
Comments
Post a Comment