/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/authoring/builder/ |
ByteBufferHelper.java | 30 int lastIndex = nuSamples.size() - 1; 31 if (lastIndex >= 0 && buffer.hasArray() && nuSamples.get(lastIndex).hasArray() && buffer.array() == nuSamples.get(lastIndex).array() && 32 nuSamples.get(lastIndex).arrayOffset() + nuSamples.get(lastIndex).limit() == buffer.arrayOffset()) { 33 ByteBuffer oldBuffer = nuSamples.remove(lastIndex); 37 } else if (lastIndex >= 0 && 38 buffer instanceof MappedByteBuffer && nuSamples.get(lastIndex) instanceof MappedByteBuffer && 39 nuSamples.get(lastIndex).limit() == nuSamples.get(lastIndex).capacity() - buffer.capacity()) [all...] |
/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())
|
/packages/inputmethods/LatinIME/tools/maketext/src/com/android/inputmethod/latin/maketext/ |
ArrayInitializerFormatter.java | 42 final int lastIndex = mCurrentIndex - 1; 43 if (mBufferedIndex == lastIndex) { 45 } else if (mBufferedIndex == lastIndex - 1) { 50 mIndent, lastIndex, elements[1]); 56 mIndent, lastIndex);
|
/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...] |
/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...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
GestureStroke.java | 214 final int lastIndex = size - 1; 215 final int deltaTime = mEventTimes.get(lastIndex) - mDetectFastMoveTime; 220 mXCoordinates.get(lastIndex), mYCoordinates.get(lastIndex), 237 final int lastIndex = getLength() - 1; 238 if (lastIndex >= 0) { 239 final int x = mXCoordinates.get(lastIndex); 240 final int y = mYCoordinates.get(lastIndex); 263 final int lastIndex = getLength() - 1; 267 if (lastIndex >= 0 && mEventTimes.get(lastIndex) > time) [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);
|
/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/dexmaker/src/dx/java/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/antlr-3.4/runtime/ActionScript/project/src/org/antlr/runtime/ |
TokenRewriteStream.as | 326 if ( iop.index >= rop.index && iop.index <= rop.lastIndex ) { 334 if ( prevRop.index>=rop.index && prevRop.lastIndex <= rop.lastIndex ) { 340 prevRop.lastIndex<rop.index || prevRop.index > rop.lastIndex; 342 prevRop.index==rop.index && prevRop.lastIndex==rop.lastIndex; 376 if ( iop.index >= rop.index && iop.index <= rop.lastIndex ) { 482 public var lastIndex:int; 486 lastIndex = toIndex [all...] |
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/ |
TokenRewriteStream.cs | 171 public int lastIndex; 175 lastIndex = to; 184 return lastIndex + 1; 191 return string.Format("<DeleteOp@{0}..{1}>", stream._tokens[index], stream._tokens[lastIndex]); 194 return string.Format("<ReplaceOp@{0}..{1}:\"{2}\">", stream._tokens[index], stream._tokens[lastIndex], text); 590 else if (iop.index > rop.index && iop.index <= rop.lastIndex) 601 if ( prevRop.index >= rop.index && prevRop.lastIndex <= rop.lastIndex ) 609 prevRop.lastIndex < rop.index || prevRop.index > rop.lastIndex; [all...] |
/external/antlr/antlr-3.4/runtime/Java/src/main/java/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...] |