Bug 652771 - Update Unicode character support for space categorization, also somewhat for uppercase and lowercase (although these will only be fully fixed in followup bugs). r=jwalden. Further (lumped together to address interdependencies): Bug 672760 - Don't pass the EOF non-character to any of the Unicode character-categorization functions. r=jwalden

This commit is contained in:
Tom Schuster
2011-07-26 14:10:33 -07:00
parent ce6b70d795
commit db104ed1d8
24 changed files with 67243 additions and 3587 deletions

View File

@@ -550,9 +550,8 @@ date_regionMatches(const char* s1, int s1off, const jschar* s2, int s2off,
while (count > 0 && s1[s1off] && s2[s2off]) {
if (ignoreCase) {
if (JS_TOLOWER((jschar)s1[s1off]) != JS_TOLOWER(s2[s2off])) {
if (unicode::ToLowerCase(s1[s1off]) != unicode::ToLowerCase(s2[s2off]))
break;
}
} else {
if ((jschar)s1[s1off] != s2[s2off]) {
break;