This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch] Fix wide char locale support(like CJK charset) in regex


On Thu, Oct 17, 2013 at 8:46 PM, Paolo Carlini <paolo.carlini@oracle.com> wrote:
>> +  const wchar_t * s = L"ä½ å¥½, 世+界";
>> +  wregex re(s);
>> +  VERIFY(regex_match_debug(L"ä½ å¥½, 世世世界", re));

Oops that's only perfect Chinese version of "hello, world" under UTF-8
charset. Now it's hex format.

I also make the char handling simpler.


-- 
Tim Shen

Attachment: a.patch
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]