Changeset 156043 in webkit for trunk/Source/JavaScriptCore/yarr/YarrPattern.cpp
- Timestamp:
- Sep 18, 2013, 8:55:55 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/yarr/YarrPattern.cpp
r148259 r156043 85 85 86 86 // Add multiple matches, if necessary. 87 UCS2CanonicalizationRange* info = rangeInfoFor(ch);87 const UCS2CanonicalizationRange* info = rangeInfoFor(ch); 88 88 if (info->type == CanonicalizeUnique) 89 89 addSorted(m_matchesUnicode, ch); … … 92 92 } 93 93 94 void putUnicodeIgnoreCase(UChar ch, UCS2CanonicalizationRange* info)94 void putUnicodeIgnoreCase(UChar ch, const UCS2CanonicalizationRange* info) 95 95 { 96 96 ASSERT(m_isCaseInsensitive); … … 99 99 ASSERT(info->type != CanonicalizeUnique); 100 100 if (info->type == CanonicalizeSet) { 101 for ( uint16_t* set = characterSetInfo[info->value]; (ch = *set); ++set)101 for (const uint16_t* set = characterSetInfo[info->value]; (ch = *set); ++set) 102 102 addSorted(m_matchesUnicode, ch); 103 103 } else { … … 130 130 return; 131 131 132 UCS2CanonicalizationRange* info = rangeInfoFor(lo);132 const UCS2CanonicalizationRange* info = rangeInfoFor(lo); 133 133 while (true) { 134 134 // Handle the range [lo .. end] … … 141 141 case CanonicalizeSet: { 142 142 UChar ch; 143 for ( uint16_t* set = characterSetInfo[info->value]; (ch = *set); ++set)143 for (const uint16_t* set = characterSetInfo[info->value]; (ch = *set); ++set) 144 144 addSorted(m_matchesUnicode, ch); 145 145 break; … … 323 323 } 324 324 325 UCS2CanonicalizationRange* info = rangeInfoFor(ch);325 const UCS2CanonicalizationRange* info = rangeInfoFor(ch); 326 326 if (info->type == CanonicalizeUnique) { 327 327 m_alternative->m_terms.append(PatternTerm(ch));
Note:
See TracChangeset
for help on using the changeset viewer.