/external/v8/test/mjsunit/regress/ |
H A D | regress-2437.js | 28 // Summary of the spec: lastIndex is reset to 0 if 33 // Otherwise lastIndex is only set when a global regexp matches, to the index 38 r.lastIndex = 1; 40 assertEquals(0, r.lastIndex); 44 r.lastIndex = 1; 46 assertEquals(0, r.lastIndex); 50 r.lastIndex = 1; 52 assertEquals(0, r.lastIndex); 56 r.lastIndex = 1; 58 assertEquals(0, r.lastIndex); [all...] |
H A D | 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 [all...] |
H A D | 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, "Globa [all...] |
H A D | regress-2438.js | 31 re.lastIndex = side_effect_object; 35 re.lastIndex = side_effect_object; 39 re.lastIndex = side_effect_object; 43 re.lastIndex = side_effect_object;
|
H A D | regress-58740.js | 35 assertEquals(0, re.lastIndex);
|
H A D | regress-crbug-170856.js | 33 assertEquals(0, r.lastIndex);
|
H A D | regress-45469.js | 33 assertEquals(i % 3, re.lastIndex, "preindex" + i); 41 assertEquals(i % 3, re.lastIndex, "testpreindex" + i);
|
H A D | regress-1217.js | 37 assertEquals(0, proto.lastIndex);
|
/external/v8/test/webkit/ |
H A D | array-lastIndexOf.js | 30 var lastIndex = 0; variable 32 lastIndex = testArray.lastIndexOf(2,-500); 33 shouldBe('lastIndex', '-1'); 34 lastIndex = testArray.lastIndexOf(9,500); 35 shouldBe('lastIndex', '2'); 36 lastIndex = testArray.lastIndexOf(2); 37 shouldBe('lastIndex', '3'); 38 lastIndex = testArray.lastIndexOf(7); 39 shouldBe('lastIndex', '-1'); 40 lastIndex [all...] |
H A D | regexp-compile.js | 69 // Compiling should reset lastIndex. 70 re.lastIndex = 100; 72 shouldBe("re.lastIndex", "0"); 74 shouldBe("re.lastIndex", "1");
|
/external/v8/test/mjsunit/harmony/ |
H A D | regexp-sticky.js | 43 assertEquals(0, sticky.lastIndex); 49 assertEquals(0, stickyplain.lastIndex); 56 global.lastIndex = 0; 63 plainglobal.lastIndex = 0; 69 assertEquals(7, stickyglobal.lastIndex); 71 stickyglobal.lastIndex = 0; 73 stickyglobal.lastIndex = 2; 75 assertEquals(9, stickyglobal.lastIndex); 82 assertEquals(6, stickyplainglobal.lastIndex); 84 stickyplainglobal.lastIndex [all...] |
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/authoring/builder/ |
H A D | 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) [all...] |
/external/v8/test/webkit/fast/regex/ |
H A D | alternative-length-miscalculation.js | 29 re.lastIndex = 1;
|
/external/v8/test/mjsunit/ |
H A D | regexp-not-sticky-yet.js | 59 re.lastIndex = -1; // Ignored for non-global, non-sticky. 61 assertEquals(-1, re.lastIndex); 63 re.lastIndex = -1; // Ignored for non-global, non-sticky. 65 assertEquals(-1, re.lastIndex);
|
/external/apache-http/src/org/apache/http/message/ |
H A D | BasicListHeaderIterator.java | 73 protected int lastIndex; field in class:BasicListHeaderIterator 100 this.lastIndex = -1; 167 this.lastIndex = current; 194 if (this.lastIndex < 0) { 197 this.allHeaders.remove(this.lastIndex); 198 this.lastIndex = -1;
|
/external/proguard/src/proguard/classfile/util/ |
H A D | InternalTypeEnumeration.java | 38 private int lastIndex; field in class:InternalTypeEnumeration 49 this.lastIndex = descriptor.indexOf(ClassConstants.METHOD_ARGUMENTS_CLOSE); 52 if (lastIndex < 0) 54 lastIndex = descriptor.length(); 84 return index < lastIndex; 123 return descriptor.substring(lastIndex + 1); 202 if (enumeration.lastIndex < descriptor.length())
|
/external/fonttools/Lib/fontTools/ttLib/tables/ |
H A D | _h_m_t_x.py | 50 lastIndex = len(metrics) 51 while metrics[lastIndex-2][0] == lastAdvance: 52 lastIndex -= 1 53 if lastIndex <= 1: 55 lastIndex = 1 57 additionalMetrics = metrics[lastIndex:] 59 metrics = metrics[:lastIndex]
|
/external/fonttools/Tools/fontTools/ttLib/tables/ |
H A D | _h_m_t_x.py | 50 lastIndex = len(metrics) 51 while metrics[lastIndex-2][0] == lastAdvance: 52 lastIndex -= 1 53 if lastIndex <= 1: 55 lastIndex = 1 57 additionalMetrics = metrics[lastIndex:] 59 metrics = metrics[:lastIndex]
|
/external/v8/src/ |
H A D | regexp.js | 153 regexp.lastIndex = 0; 165 var lastIndex = this.lastIndex; 169 var i = TO_INTEGER(lastIndex); 174 this.lastIndex = 0; 185 this.lastIndex = 0; 192 this.lastIndex = lastMatchInfo[CAPTURE1]; 213 var lastIndex = this.lastIndex; 217 var i = TO_INTEGER(lastIndex); [all...] |
/external/dexmaker/src/dx/java/com/android/dx/dex/file/ |
H A D | EncodedMember.java | 78 * @param lastIndex {@code >= 0;} the previous member index value encoded, or 85 int lastIndex, int dumpSeq); 84 encode(DexFile file, AnnotatedOutput out, int lastIndex, int dumpSeq) argument
|
/external/antlr/antlr-3.4/runtime/ActionScript/project/src/org/antlr/runtime/ |
H A D | 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 [all...] |
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime/ |
H A D | TokenRewriteStream.cs | 151 public int lastIndex; field in class:Antlr.Runtime.TokenRewriteStream.ReplaceOp 154 lastIndex = to; 160 return lastIndex + 1; 163 return "<ReplaceOp@" + index + ".." + lastIndex + ":\"" + text + "\">"; 172 return "<DeleteOp@" + index + ".." + lastIndex + ">"; 505 if (iop.index >= rop.index && iop.index <= rop.lastIndex) { 514 if (prevRop.index >= rop.index && prevRop.lastIndex <= rop.lastIndex) { 521 prevRop.lastIndex < rop.index || prevRop.index > rop.lastIndex; [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
H A D | RangeDateRule.java | 137 int lastIndex = ranges.size(); 144 lastIndex = i; 146 return lastIndex;
|
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/ |
H A D | TokenRewriteStream.cs | 171 public int lastIndex; field in class:Antlr.Runtime.TokenRewriteStream.ReplaceOp 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/ |
H A D | TokenRewriteStream.java | 137 protected int lastIndex; field in class:TokenRewriteStream.ReplaceOp 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...] |