Searched refs:lastIndex (Results 1 - 25 of 147) sorted by relevance

123456

/external/chromium_org/v8/test/mjsunit/regress/
H A Dregress-2437.js28 // 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 Dregress-52801.js36 // 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 Dregress-254.js30 // 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 Dregress-2438.js31 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 Dregress-58740.js35 assertEquals(0, re.lastIndex);
H A Dregress-crbug-170856.js33 assertEquals(0, r.lastIndex);
H A Dregress-45469.js33 assertEquals(i % 3, re.lastIndex, "preindex" + i);
41 assertEquals(i % 3, re.lastIndex, "testpreindex" + i);
H A Dregress-1217.js37 assertEquals(0, proto.lastIndex);
/external/chromium_org/v8/test/webkit/
H A Darray-lastIndexOf.js30 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 Dregexp-compile.js69 // Compiling should reset lastIndex.
70 re.lastIndex = 100;
72 shouldBe("re.lastIndex", "0");
74 shouldBe("re.lastIndex", "1");
/external/chromium_org/v8/test/mjsunit/harmony/
H A Dregexp-sticky.js43 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 DByteBufferHelper.java30 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/chromium_org/v8/test/webkit/fast/regex/
H A Dalternative-length-miscalculation.js29 re.lastIndex = 1;
/external/chromium_org/v8/test/mjsunit/
H A Dregexp-not-sticky-yet.js59 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 DBasicListHeaderIterator.java73 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/chromium_org/third_party/tlslite/tlslite/
H A Dsessioncache.py49 self.lastIndex = 0
76 self.entriesList[self.lastIndex] = (sessionID, time.time())
77 self.lastIndex = (self.lastIndex+1) % len(self.entriesList)
81 if self.lastIndex == self.firstIndex:
96 while index != self.lastIndex:
/external/proguard/src/proguard/classfile/util/
H A DInternalTypeEnumeration.java38 private int lastIndex; field in class:InternalTypeEnumeration
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/chromium_org/ui/file_manager/gallery/js/
H A Dribbon.js185 var lastIndex = selectedIndex + right;
186 lastIndex = Math.max(lastIndex, fullItems - 1);
187 lastIndex = Math.min(lastIndex, length - 1);
188 var firstIndex = lastIndex - fullItems + 1;
191 this.lastVisibleIndex_ != lastIndex) {
195 this.lastVisibleIndex_ = lastIndex;
204 index <= Math.max(lastIndex, this.lastVisibleIndex_);
208 lastIndex < inde
[all...]
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/common/
H A DTextUtils.js128 * @param {number=} lastIndex
131 findBalancedCurlyBrackets: function(source, startIndex, lastIndex) {
132 lastIndex = lastIndex || source.length;
137 for (var index = startIndex; index < lastIndex; ++index) {
/external/fonttools/Lib/fontTools/ttLib/tables/
H A D_h_m_t_x.py50 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.py50 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/chromium_org/v8/src/
H A Dregexp.js153 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 DEncodedMember.java78 * @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 DTokenRewriteStream.as326 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 DTokenRewriteStream.cs151 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...]

Completed in 795 milliseconds

123456