/external/v8/test/mjsunit/regress/ |
D | regress-2437.js | 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); 62 r.lastIndex = 1; 64 assertEquals(0, r.lastIndex); [all …]
|
D | regress-52801.js | 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; 69 assertEquals(5, re.lastIndex); // Fails if caching.
|
D | regress-254.js | 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"); 48 assertEquals(0, re2.lastIndex, "Non-global, initial lastIndex"); 51 assertEquals(0, re2.lastIndex, "Non-global, lastIndex after test 1"); 53 assertEquals(0, re2.lastIndex, "Non-global, lastIndex after test 2"); 56 assertEquals(0, re2.lastIndex, "Non-global, lastIndex after exec 1"); 58 assertEquals(0, re2.lastIndex, "Non-global, lastIndex after exec 2");
|
/external/v8/test/webkit/ |
D | array-enumerators-functions-expected.txt | 29 PASS count=0;lastIndex=-1;copyArray(simpleArray).every(forwarders[f], returnFalse, 0) is count=0;la… 30 PASS count=0;lastIndex=-1;copyArray(emptyArray).every(forwarders[f], returnFalse, 0) is count=0;las… 31 PASS count=0;lastIndex=-1;copyArray(largeEmptyArray).every(forwarders[f], returnFalse, 0) is count=… 32 PASS count=0;lastIndex=-1;copyArray(largeSparseArray).every(forwarders[f], returnFalse, 0) is count… 33 PASS count=0;lastIndex=-1;copyArray(simpleArray).every(forwarders[f], returnTrue, 0) is count=0;las… 34 PASS count=0;lastIndex=-1;copyArray(emptyArray).every(forwarders[f], returnTrue, 0) is count=0;last… 35 PASS count=0;lastIndex=-1;copyArray(largeEmptyArray).every(forwarders[f], returnTrue, 0) is count=0… 36 PASS count=0;lastIndex=-1;copyArray(largeSparseArray).every(forwarders[f], returnTrue, 0) is count=… 37 PASS count=0;lastIndex=-1;copyArray(simpleArray).every(forwarders[f], returnElem, 0) is count=0;las… 38 PASS count=0;lastIndex=-1;copyArray(emptyArray).every(forwarders[f], returnElem, 0) is count=0;last… [all …]
|
D | array-lastIndexOf.js | 30 var lastIndex = 0; variable 32 lastIndex = testArray.lastIndexOf(2,-500); 34 lastIndex = testArray.lastIndexOf(9,500); 36 lastIndex = testArray.lastIndexOf(2); 38 lastIndex = testArray.lastIndexOf(7); 40 lastIndex = testArray.lastIndexOf(2, 3); 42 lastIndex = testArray.lastIndexOf(2, 2); 44 lastIndex = testArray.lastIndexOf(2, -2); 46 lastIndex = testArray.lastIndexOf(2, -1); 51 lastIndex = testArray.lastIndexOf(undefined); [all …]
|
D | array-lastIndexOf-expected.txt | 29 PASS lastIndex is -1 30 PASS lastIndex is 2 31 PASS lastIndex is 3 32 PASS lastIndex is -1 33 PASS lastIndex is 3 34 PASS lastIndex is 0 35 PASS lastIndex is 0 36 PASS lastIndex is 3 37 PASS lastIndex is -1 38 PASS lastIndex is -1 [all …]
|
/external/v8/test/mjsunit/harmony/ |
D | regexp-sticky.js | 43 assertEquals(7, sticky.lastIndex); 49 assertEquals(6, 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 = 0; [all …]
|
/external/v8/test/webkit/fast/regex/ |
D | lastIndex-expected.txt | 24 This page tests that a RegExp object's lastIndex behaves like a regular property. 29 PASS delete /x/.lastIndex is false 30 PASS 'use strict'; delete /x/.lastIndex threw exception TypeError: Cannot delete property 'lastInde… 31 PASS 'lastIndex' in /x/ is true 32 PASS for (property in /x/) if (property === 'lastIndex') throw false; true is true 33 PASS var re = /x/; re.lastIndex = re; re.lastIndex === re is true 35 …bject.defineProperty(/x/, 'lastIndex', {enumerable:true}); true threw exception TypeError: Cannot … 36 PASS Object.defineProperty(/x/, 'lastIndex', {enumerable:false}); true is true 37 …ject.defineProperty(/x/, 'lastIndex', {configurable:true}); true threw exception TypeError: Cannot… 38 PASS Object.defineProperty(/x/, 'lastIndex', {configurable:false}); true is true [all …]
|
D | malformed-escapes-expected.txt | 32 PASS regexp.lastIndex is 2 36 PASS regexp.lastIndex is 2 40 PASS regexp.lastIndex is 3 44 PASS regexp.lastIndex is 1 48 PASS regexp.lastIndex is 1 52 PASS regexp.lastIndex is 2
|
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/authoring/builder/ |
D | ByteBufferHelper.java | 30 int lastIndex = nuSamples.size() - 1; in mergeAdjacentBuffers() local 31 …if (lastIndex >= 0 && buffer.hasArray() && nuSamples.get(lastIndex).hasArray() && buffer.array() =… in mergeAdjacentBuffers() 32 …nuSamples.get(lastIndex).arrayOffset() + nuSamples.get(lastIndex).limit() == buffer.arrayOffset())… in mergeAdjacentBuffers() 33 ByteBuffer oldBuffer = nuSamples.remove(lastIndex); in mergeAdjacentBuffers() 37 } else if (lastIndex >= 0 && in mergeAdjacentBuffers() 38 … buffer instanceof MappedByteBuffer && nuSamples.get(lastIndex) instanceof MappedByteBuffer && in mergeAdjacentBuffers() 39 … nuSamples.get(lastIndex).limit() == nuSamples.get(lastIndex).capacity() - buffer.capacity()) { in mergeAdjacentBuffers() 41 ByteBuffer oldBuffer = nuSamples.get(lastIndex); in mergeAdjacentBuffers()
|
D | DefaultMp4Builder.java | 558 int lastIndex = nuSamples.size() - 1; in unifyAdjacentBuffers() local 559 …if (lastIndex >= 0 && buffer.hasArray() && nuSamples.get(lastIndex).hasArray() && buffer.array() =… in unifyAdjacentBuffers() 560 …nuSamples.get(lastIndex).arrayOffset() + nuSamples.get(lastIndex).limit() == buffer.arrayOffset())… in unifyAdjacentBuffers() 561 ByteBuffer oldBuffer = nuSamples.remove(lastIndex); in unifyAdjacentBuffers() 565 } else if (lastIndex >= 0 && in unifyAdjacentBuffers() 566 … buffer instanceof MappedByteBuffer && nuSamples.get(lastIndex) instanceof MappedByteBuffer && in unifyAdjacentBuffers() 567 … nuSamples.get(lastIndex).limit() == nuSamples.get(lastIndex).capacity() - buffer.capacity()) { in unifyAdjacentBuffers() 569 ByteBuffer oldBuffer = nuSamples.get(lastIndex); in unifyAdjacentBuffers()
|
/external/proguard/src/proguard/classfile/util/ |
D | InternalTypeEnumeration.java | 38 private int lastIndex; field in InternalTypeEnumeration 49 this.lastIndex = descriptor.indexOf(ClassConstants.METHOD_ARGUMENTS_CLOSE); in InternalTypeEnumeration() 52 if (lastIndex < 0) in InternalTypeEnumeration() 54 lastIndex = descriptor.length(); in InternalTypeEnumeration() 84 return index < lastIndex; in hasMoreTypes() 123 return descriptor.substring(lastIndex + 1); in returnType() 202 if (enumeration.lastIndex < descriptor.length()) in main()
|
/external/apache-http/src/org/apache/http/message/ |
D | BasicListHeaderIterator.java | 73 protected int lastIndex; field in BasicListHeaderIterator 100 this.lastIndex = -1; in BasicListHeaderIterator() 167 this.lastIndex = current; in nextHeader() 194 if (this.lastIndex < 0) { in remove() 197 this.allHeaders.remove(this.lastIndex); in remove() 198 this.lastIndex = -1; in remove()
|
/external/v8/src/js/ |
D | regexp.js | 160 if (REGEXP_STICKY(regexp)) regexp.lastIndex = matchInfo[CAPTURE1]; 163 regexp.lastIndex = 0; 175 var lastIndex = this.lastIndex; 179 var i = TO_LENGTH_OR_INTEGER(lastIndex); 184 this.lastIndex = 0; 195 this.lastIndex = 0; 201 this.lastIndex = RegExpLastMatchInfo[CAPTURE1]; 222 var lastIndex = this.lastIndex; 226 var i = TO_LENGTH_OR_INTEGER(lastIndex); 230 this.lastIndex = 0; [all …]
|
/external/v8/test/mjsunit/es6/ |
D | regexp-tolength.js | 11 regexp.lastIndex = -1; 14 assertEquals(2, regexp.lastIndex); 16 regexp.lastIndex = -1; 19 assertEquals(2, regexp.lastIndex);
|
/external/fonttools/Lib/fontTools/ttLib/tables/ |
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/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/ |
D | TokenRewriteStream.cs | 171 public int lastIndex; field in Antlr.Runtime.TokenRewriteStream.ReplaceOp 175 lastIndex = to; in ReplaceOp() 184 return lastIndex + 1; in Execute() 191 … return string.Format("<DeleteOp@{0}..{1}>", stream._tokens[index], stream._tokens[lastIndex]); in ToString() 194 …ing.Format("<ReplaceOp@{0}..{1}:\"{2}\">", stream._tokens[index], stream._tokens[lastIndex], text); in ToString() 590 else if (iop.index > rop.index && iop.index <= rop.lastIndex) in ReduceToSingleOperationPerIndex() 601 if ( prevRop.index >= rop.index && prevRop.lastIndex <= rop.lastIndex ) in ReduceToSingleOperationPerIndex() 609 prevRop.lastIndex < rop.index || prevRop.index > rop.lastIndex; in ReduceToSingleOperationPerIndex() 611 prevRop.index == rop.index && prevRop.lastIndex == rop.lastIndex; in ReduceToSingleOperationPerIndex() 619 rop.lastIndex = Math.Max(prevRop.lastIndex, rop.lastIndex); in ReduceToSingleOperationPerIndex() [all …]
|
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/ |
D | TokenRewriteStream.java | 137 protected int lastIndex; field in TokenRewriteStream.ReplaceOp 140 lastIndex = to; in ReplaceOp() 146 return lastIndex+1; in execute() 151 ".."+tokens.get(lastIndex)+">"; in toString() 154 ".."+tokens.get(lastIndex)+":\""+text+"\">"; in toString() 475 else if ( iop.index > rop.index && iop.index <= rop.lastIndex ) { in reduceToSingleOperationPerIndex() 484 if ( prevRop.index>=rop.index && prevRop.lastIndex <= rop.lastIndex ) { in reduceToSingleOperationPerIndex() 491 prevRop.lastIndex<rop.index || prevRop.index > rop.lastIndex; in reduceToSingleOperationPerIndex() 493 prevRop.index==rop.index && prevRop.lastIndex==rop.lastIndex; in reduceToSingleOperationPerIndex() 500 rop.lastIndex = Math.max(prevRop.lastIndex, rop.lastIndex); in reduceToSingleOperationPerIndex() [all …]
|
/external/v8/test/mjsunit/ |
D | regexp-not-sticky-yet.js | 60 re.lastIndex = -1; // Ignored for non-global, non-sticky. 62 assertEquals(-1, re.lastIndex); 64 re.lastIndex = -1; // Ignored for non-global, non-sticky. 66 assertEquals(-1, re.lastIndex);
|
D | regexp.js | 437 assertEquals(0, re.lastIndex); 444 assertEquals(0, re.lastIndex); 446 re.lastIndex = 42; 457 assertEquals(0, re.lastIndex); 464 re.lastIndex = -1; 475 assertEquals(0, re.lastIndex); 564 re.lastIndex = fakeLastIndex; 571 re.lastIndex = fakeLastIndex; 578 re.lastIndex = fakeLastIndex; 586 re.lastIndex = fakeLastIndex; [all …]
|
D | regexp-capture-3.js | 34 assertEquals(undefined, RegExp.lastIndex); 50 assertEquals(undefined, RegExp.lastIndex); 63 assertEquals(undefined, RegExp.lastIndex); 81 assertEquals(undefined, RegExp.lastIndex);
|
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime/ |
D | TokenRewriteStream.cs | 151 public int lastIndex; field in Antlr.Runtime.TokenRewriteStream.ReplaceOp 154 lastIndex = to; in ReplaceOp() 160 return lastIndex + 1; in Execute() 163 return "<ReplaceOp@" + index + ".." + lastIndex + ":\"" + text + "\">"; in ToString() 172 return "<DeleteOp@" + index + ".." + lastIndex + ">"; in ToString() 505 if (iop.index >= rop.index && iop.index <= rop.lastIndex) { in ReduceToSingleOperationPerIndex() 514 if (prevRop.index >= rop.index && prevRop.lastIndex <= rop.lastIndex) { in ReduceToSingleOperationPerIndex() 521 prevRop.lastIndex < rop.index || prevRop.index > rop.lastIndex; in ReduceToSingleOperationPerIndex() 523 prevRop.index == rop.index && prevRop.lastIndex == rop.lastIndex; in ReduceToSingleOperationPerIndex() 560 if (iop.index >= rop.index && iop.index <= rop.lastIndex) { in ReduceToSingleOperationPerIndex()
|
/external/antlr/antlr-3.4/runtime/Python/antlr3/ |
D | streams.py | 1002 self.lastIndex = last 1009 return self.lastIndex + 1 1014 return '<DeleteOp@%d..%d>' % (self.index, self.lastIndex) 1017 self.index, self.lastIndex, self.text) 1408 elif iop.index > rop.index and iop.index <= rop.lastIndex: 1415 and prevRop.lastIndex <= rop.lastIndex): 1421 disjoint = (prevRop.lastIndex < rop.index 1422 or prevRop.index > rop.lastIndex) 1424 and prevRop.lastIndex == rop.lastIndex) 1434 rop.lastIndex = max(prevRop.lastIndex, rop.lastIndex) [all …]
|
/external/skia/src/core/ |
D | SkAdvancedTypefaceMetrics.cpp | 160 int lastIndex = num_glyphs; in getAdvanceData() local 163 lastIndex = in getAdvanceData() 168 for (int gId = firstIndex; gId <= lastIndex; gId++) { in getAdvanceData() 170 if (gId < lastIndex) { in getAdvanceData() 245 if (curRange->fStartId == lastIndex) { in getAdvanceData() 247 SkASSERT(prevRange->fNext->fStartId == lastIndex); in getAdvanceData() 250 finishRange(curRange, lastIndex - 1, in getAdvanceData()
|
/external/vogar/src/vogar/target/ |
D | ClassPathScanner.java | 154 int lastIndex = entryName.lastIndexOf('/'); in getJarEntries() local 156 String packageName = entryName.substring(0, lastIndex + 1); in getJarEntries() 158 lastIndex = entryName.lastIndexOf('/', lastIndex - 1); in getJarEntries() 159 } while (lastIndex > 0); in getJarEntries()
|