http://codereview.chromium.org/10975/diff/1/4
File src/unicode.h (right):

http://codereview.chromium.org/10975/diff/1/4#newcode253
Line 253: static int Convert(uchar c,
Unicode defines several mappings, including a 1:1 mapping, a 1:n mapping
and a locale-sensitive 1:n mapping.  FoldCase implements the simple 1:1
mapping.

Anyway, you're right: we can't actually use case folding to implement
canonicalize.  We need ToUpperCase (which we already have) and its
equivalence class mapping instead.  I should have guessed that the spec
would use it's own crazy magic kind of case independence rather than the
one in the unicode standard.

http://codereview.chromium.org/10975

--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to