Changeset 65188 in webkit for trunk/JavaScriptCore/runtime/RegExp.cpp
- Timestamp:
- Aug 11, 2010, 2:52:13 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/RegExp.cpp
r65177 r65188 177 177 JSRegExpIgnoreCaseOption ignoreCaseOption = ignoreCase() ? JSRegExpIgnoreCase : JSRegExpDoNotIgnoreCase; 178 178 JSRegExpMultilineOption multilineOption = multiline() ? JSRegExpMultiline : JSRegExpSingleLine; 179 m_regExp = jsRegExpCompile(reinterpret_cast<const UChar*>(m_pattern. data()), m_pattern.size(), ignoreCaseOption, multilineOption, &m_numSubpatterns, &m_constructionError);179 m_regExp = jsRegExpCompile(reinterpret_cast<const UChar*>(m_pattern.characters()), m_pattern.length(), ignoreCaseOption, multilineOption, &m_numSubpatterns, &m_constructionError); 180 180 } 181 181 … … 187 187 ovector->clear(); 188 188 189 if (static_cast<unsigned>(startOffset) > s. size() || s.isNull())189 if (static_cast<unsigned>(startOffset) > s.length() || s.isNull()) 190 190 return -1; 191 191 … … 205 205 } 206 206 207 int numMatches = jsRegExpExecute(m_regExp, reinterpret_cast<const UChar*>(s. data()), s.size(), startOffset, offsetVector, offsetVectorSize);207 int numMatches = jsRegExpExecute(m_regExp, reinterpret_cast<const UChar*>(s.characters()), s.length(), startOffset, offsetVector, offsetVectorSize); 208 208 209 209 if (numMatches < 0) {
Note:
See TracChangeset
for help on using the changeset viewer.