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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user