Changeset 68207 in webkit for trunk/JavaScriptCore/runtime/RegExp.cpp
- Timestamp:
- Sep 23, 2010, 3:23:19 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/RegExp.cpp
r67146 r68207 116 116 if (startOffset < 0) 117 117 startOffset = 0; 118 if (ovector)119 ovector->resize(0);120 118 121 119 #if ENABLE(REGEXP_TRACING) … … 143 141 144 142 ASSERT(offsetVector); 145 for (int j = 0; j < offsetVectorSize; ++j) 143 // Initialize offsetVector with the return value (index 0) and the 144 // first subpattern start indicies (even index values) set to -1. 145 // No need to init the subpattern end indicies. 146 for (unsigned j = 0, i = 0; i < m_numSubpatterns + 1; j += 2, i++) 146 147 offsetVector[j] = -1; 147 148 … … 158 159 fprintf(stderr, "jsRegExpExecute failed with result %d\n", result); 159 160 #endif 160 if (ovector)161 ovector->clear();162 161 } 163 162
Note:
See TracChangeset
for help on using the changeset viewer.