Changeset 43110 in webkit for trunk/JavaScriptCore/yarr/RegexCompiler.cpp
- Timestamp:
- Apr 30, 2009, 9:10:25 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/yarr/RegexCompiler.cpp
r43100 r43110 109 109 } 110 110 if (hi >= 0x80) { 111 UCharunicodeCurr = std::max(lo, (UChar)0x80);111 uint32_t unicodeCurr = std::max(lo, (UChar)0x80); 112 112 addSortedRange(m_rangesUnicode, unicodeCurr, hi); 113 113 114 114 if (m_isCaseInsensitive) { 115 115 while (unicodeCurr <= hi) { 116 // If the upper bound of the range (hi) is 0xffff, the increments to 117 // unicodeCurr in this loop may take it to 0x10000. This is fine 118 // (if so we won't re-enter the loop, since the loop condition above 119 // will definitely fail) - but this does mean we cannot use a UChar 120 // to represent unicodeCurr, we must use a 32-bit value instead. 121 ASSERT(unicodeCurr <= 0xffff); 122 116 123 if (isUnicodeUpper(unicodeCurr)) { 117 124 UChar lowerCaseRangeBegin = Unicode::toLower(unicodeCurr);
Note:
See TracChangeset
for help on using the changeset viewer.