/external/webkit/Source/JavaScriptCore/runtime/ |
RegExpObject.h | 39 void setLastIndex(size_t lastIndex) 41 d->lastIndex.setWithoutWriteBarrier(jsNumber(lastIndex)); 43 void setLastIndex(JSGlobalData& globalData, JSValue lastIndex) 45 d->lastIndex.set(globalData, this, lastIndex); 49 return d->lastIndex.get(); 80 lastIndex.setWithoutWriteBarrier(jsNumber(0)); 84 WriteBarrier<Unknown> lastIndex;
|
RegExpObject.cpp | 60 lastIndex regExpObjectLastIndex DontDelete|DontEnum 78 if (UNLIKELY(!d->lastIndex.get().isInt32())) 79 markStack.append(&d->lastIndex); 153 unsigned lastIndex; 155 lastIndex = jsLastIndex.asUInt32(); 156 if (lastIndex > input.length()) { 166 lastIndex = static_cast<unsigned>(doubleLastIndex); 171 regExpConstructor->performMatch(d->regExp.get(), input, lastIndex, position, length);
|
/external/v8/test/mjsunit/regress/ |
regress-254.js | 30 // RegExp with global flag: exec and test updates lastIndex. 33 assertEquals(0, re.lastIndex, "Global, initial lastIndex"); 36 assertEquals(1, re.lastIndex, "Global, lastIndex after test 1"); 38 assertEquals(0, re.lastIndex, "Global, lastIndex after test 2"); 41 assertEquals(1, re.lastIndex, "Global, lastIndex after exec 1"); 43 assertEquals(0, re.lastIndex, "Global, lastIndex after exec 2") [all...] |
regress-52801.js | 36 // RegExp caching doesn't set lastIndex correctly. 46 assertEquals(5, re.lastIndex); 48 re.lastIndex = 0; 50 assertEquals(5, re.lastIndex); // Fails if caching. 52 re.lastIndex = 0; 54 assertEquals(5, re.lastIndex); // Fails if caching. 61 assertEquals(5, re.lastIndex); 63 re.lastIndex = 0; 65 assertEquals(5, re.lastIndex); // Fails if caching. 67 re.lastIndex = 0 [all...] |
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma_2/RegExp/ |
properties-002.js | 20 re_1.lastIndex = Math.pow(2,31); 24 re_2.lastIndex = Math.pow(2,32) -1; 28 re_3.lastIndex = Math.pow(2,31) -1; 32 re_4.lastIndex = Math.pow(2,30) -1; 36 re_5.lastIndex = Math.pow(2,30); 42 * http://bugzilla.mozilla.org/show_bug.cgi?id=124339, lastIndex 51 re_6.lastIndex = Math.pow(2,32); 55 re_7.lastIndex = Math.pow(2,32) + 1; 59 re_8.lastIndex = Math.pow(2,32) * 2; 63 re_9.lastIndex = Math.pow(2,40) [all...] |
constructor-001.js | 23 * - lastIndex property is set to 0 62 "(new RegExp()).lastIndex", 64 re.lastIndex );
|
function-001.js | 23 * - lastIndex property is set to 0 62 "(new RegExp()).lastIndex", 64 re.lastIndex );
|
/dalvik/libdex/ |
DexClass.h | 69 * The lastIndex value should be set to 0 before the first field in 77 DexField* pField, u4* lastIndex); 83 * The lastIndex value should be set to 0 before the first method in 91 DexMethod* pMethod, u4* lastIndex); 132 * The lastIndex value should be set to 0 before the first field in 137 u4* lastIndex) { 138 u4 index = *lastIndex + readUnsignedLeb128(pData); 142 *lastIndex = index; 148 * The lastIndex value should be set to 0 before the first method in 153 u4* lastIndex) { [all...] |
DexClass.cpp | 56 * The lastIndex value should be set to 0 before the first field in 64 DexField* pField, u4* lastIndex) { 69 dexReadClassDataField(pData, pField, lastIndex); 77 * The lastIndex value should be set to 0 before the first method in 85 DexMethod* pMethod, u4* lastIndex) { 90 dexReadClassDataMethod(pData, pMethod, lastIndex); 106 u4 lastIndex; 162 lastIndex = 0; 165 &result->staticFields[i], &lastIndex); 168 lastIndex = 0 [all...] |
/external/apache-http/src/org/apache/http/message/ |
BasicListHeaderIterator.java | 68 protected int lastIndex; 95 this.lastIndex = -1; 162 this.lastIndex = current; 189 if (this.lastIndex < 0) { 192 this.allHeaders.remove(this.lastIndex); 193 this.lastIndex = -1;
|
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma_3/RegExp/ |
15.10.6.2-2.js | 38 * SUMMARY: Testing re.exec(str) when re.lastIndex is < 0 or > str.length 58 * 3. Let lastIndex be the value of the lastIndex property. 59 * 4. Let i be the value of ToInteger(lastIndex). 61 * 6. If i < 0 or i > length then set lastIndex to 0 and return null. 68 * 11. If the global property is true, set lastIndex to e. 75 * A. If the global flag is not set, |lastIndex| is set to 0 78 * B. If the global flag IS set and re.lastIndex is >= 0 and <= str.length, 79 * |lastIndex| is incremented every time there is a match; not from 86 * C. When the global flag IS set and re.lastIndex is < 0 or > str.length [all...] |
/external/proguard/src/proguard/classfile/util/ |
InternalTypeEnumeration.java | 38 private int lastIndex; 49 this.lastIndex = descriptor.indexOf(ClassConstants.INTERNAL_METHOD_ARGUMENTS_CLOSE); 52 if (lastIndex < 0) 54 lastIndex = descriptor.length(); 75 return index < lastIndex; 114 return descriptor.substring(lastIndex + 1); 193 if (enumeration.lastIndex < descriptor.length())
|
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma_2/String/ |
match-003.js | 19 * Otherwise, set the regexp.lastIndex property to 0 and invoke 22 * regexp.lastIndex is left unchanged) increment regexp.lastIndex by 1. 42 // [if regexp.global is true] set the regexp.lastIndex property to 0 and 45 // regexp.lastIndex is left unchanged) increment regexp.lastIndex by 1. 51 // set the value of lastIndex 62 re.lastIndex = 0; 66 "re = " + re + "; re.lastIndex = 0 ", 71 re.lastIndex = s.length [all...] |
match-002.js | 19 * Otherwise, set the regexp.lastIndex property to 0 and invoke 22 * regexp.lastIndex is left unchanged) increment regexp.lastIndex by 1. 56 // set the value of lastIndex 58 re.lastIndex = 0; 63 "re = /([\d]{5})([-\ ]?[\d]{4})?$/; re.lastIndex =0", 69 re.lastIndex = s.length; 72 "re = /([\d]{5})([-\ ]?[\d]{4})?$/; re.lastIndex = " + 78 re.lastIndex = s.lastIndexOf("0"); 81 "re = /([\d]{5})([-\ ]?[\d]{4})?$/; re.lastIndex = " [all...] |
match-004.js | 19 * Otherwise, set the regexp.lastIndex property to 0 and invoke 22 * regexp.lastIndex is left unchanged) increment regexp.lastIndex by 1. 45 // set the value of lastIndex 59 re.lastIndex = 0; 61 "re = " + re +" [lastIndex is " + re.lastIndex+"]", 68 re.lastIndex = s.length; 71 "re = /([\d]{5})([-\ ]?[\d]{4})?$/; re.lastIndex = " + 77 re.lastIndex = s.lastIndexOf("0") [all...] |
/external/webkit/Source/JavaScriptCore/tests/mozilla/js1_2/regexp/ |
RegExp_lastIndex.js | 24 Description: 'Tests RegExps lastIndex property' 33 var TITLE = 'RegExp: lastIndex'; 42 // re=/x./g; re.lastIndex=4; re.exec('xyabcdxa'); 44 re.lastIndex=4; 45 testcases[count++] = new TestCase ( SECTION, "re=/x./g; re.lastIndex=4; re.exec('xyabcdxa')", 48 // re.lastIndex 49 testcases[count++] = new TestCase ( SECTION, "re.lastIndex", 50 8, re.lastIndex); 56 // re.lastIndex 57 testcases[count++] = new TestCase ( SECTION, "re.lastIndex", [all...] |
/dalvik/dexgen/src/com/android/dexgen/dex/file/ |
EncodedMember.java | 78 * @param lastIndex {@code >= 0;} the previous member index value encoded, or 85 int lastIndex, int dumpSeq);
|
EncodedField.java | 134 int lastIndex, int dumpSeq) { 136 int diff = fieldIdx - lastIndex;
|
/dalvik/dx/src/com/android/dx/dex/file/ |
EncodedMember.java | 78 * @param lastIndex {@code >= 0;} the previous member index value encoded, or 85 int lastIndex, int dumpSeq);
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/ |
ThrowableTest.java | 102 int lastIndex = 0; 103 while (lastIndex < trace.length()) { 104 int index = trace.indexOf('\n', lastIndex); 107 String line = trace.substring(lastIndex, index); 108 lastIndex = index + 1;
|
/external/antlr/src/org/antlr/runtime/ |
TokenRewriteStream.java | 137 protected int lastIndex; 140 lastIndex = to; 146 return lastIndex+1; 151 ".."+tokens.get(lastIndex)+">"; 154 ".."+tokens.get(lastIndex)+":\""+text+"\">"; 475 else if ( iop.index > rop.index && iop.index <= rop.lastIndex ) { 484 if ( prevRop.index>=rop.index && prevRop.lastIndex <= rop.lastIndex ) { 491 prevRop.lastIndex<rop.index || prevRop.index > rop.lastIndex; [all...] |
/external/javassist/src/main/javassist/scopedpool/ |
ScopedClassPool.java | 172 final int lastIndex = classname.lastIndexOf('$'); 174 if (lastIndex < 0) { 179 classResourceName = classname.substring(0, lastIndex) 181 + classname.substring(lastIndex) + ".class";
|
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/ |
VNodeBuilder.java | 94 int lastIndex = mVNodeList.size() - 1; 95 mVNodeList.remove(lastIndex--); 96 mCurrentVNode = lastIndex >= 0 ? mVNodeList.get(lastIndex) : null;
|
/frameworks/base/test-runner/src/android/test/ |
ClassPathPackageInfoSource.java | 271 int lastIndex = entryName.lastIndexOf('/'); 273 String packageName = entryName.substring(0, lastIndex + 1); 275 lastIndex = entryName.lastIndexOf('/', lastIndex - 1); 276 } while (lastIndex > 0);
|
/external/junit/src/junit/textui/ |
TestRunner.java | 169 int lastIndex= arg.lastIndexOf('.'); 170 testCase= arg.substring(0, lastIndex); 171 method= arg.substring(lastIndex + 1);
|