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

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -