Changeset 55900 in webkit for trunk/JavaScriptCore/yarr/RegexInterpreter.cpp
- Timestamp:
- Mar 12, 2010, 7:28:25 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/yarr/RegexInterpreter.cpp
r50143 r55900 281 281 } 282 282 283 bool tryConsumeCharacter(int testChar)284 {285 if (input.atEnd())286 return false;287 288 int ch = input.read();289 290 if (pattern->m_ignoreCase ? ((Unicode::toLower(testChar) == ch) || (Unicode::toUpper(testChar) == ch)) : (testChar == ch)) {291 input.next();292 return true;293 }294 return false;295 }296 297 283 bool checkCharacter(int testChar, int inputPosition) 298 284 { … … 304 290 int ch = input.readChecked(inputPosition); 305 291 return (loChar == ch) || (hiChar == ch); 306 }307 308 bool tryConsumeCharacterClass(CharacterClass* characterClass, bool invert)309 {310 if (input.atEnd())311 return false;312 313 bool match = testCharacterClass(characterClass, input.read());314 315 if (invert)316 match = !match;317 318 if (match) {319 input.next();320 return true;321 }322 return false;323 292 } 324 293
Note:
See TracChangeset
for help on using the changeset viewer.