HomeSort by relevance Sort by last modified time
    Searched full:lastindex (Results 1 - 25 of 166) sorted by null

1 2 3 4 5 6 7

  /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...]
regress-45469.js 33 assertEquals(i % 3, re.lastIndex, "preindex" + i);
41 assertEquals(i % 3, re.lastIndex, "testpreindex" + i);
  /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...]
  /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/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-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...]
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/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/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...]
15.10.6.2-1.js 38 * 3. Let lastIndex be the value of the lastIndex property.
39 * 4. Let i be the value of ToInteger(lastIndex).
41 * 6. If i < 0 or i > length then set lastIndex to 0 and return null.
48 * 11. If the global property is true, set lastIndex to e.
53 * So when the global flag is set, |lastIndex| is incremented every time
  /dalvik/libdex/
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...]
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...]
  /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 );
exec-001.js 19 * - value of lastIndex
  /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/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/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...]
  /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/v8/src/
regexp.js 178 var lastIndex = this.lastIndex;
182 var i = TO_INTEGER(lastIndex);
187 this.lastIndex = 0;
194 %_Log('regexp', 'regexp-exec,%0r,%1S,%2i', [this, string, lastIndex]);
199 if (global) this.lastIndex = 0;
206 this.lastIndex = lastMatchInfo[CAPTURE1];
227 var lastIndex = this.lastIndex;
231 var i = TO_INTEGER(lastIndex);
    [all...]
  /external/skia/legacy/src/core/
SkAdvancedTypefaceMetrics.cpp 156 int lastIndex = num_glyphs;
159 lastIndex =
164 for (int gId = firstIndex; gId <= lastIndex; gId++) {
166 if (gId < lastIndex) {
241 if (curRange->fStartId == lastIndex) {
243 SkASSERT(prevRange->fNext->fStartId == lastIndex);
246 finishRange(curRange, lastIndex - 1,
  /external/skia/src/core/
SkAdvancedTypefaceMetrics.cpp 162 int lastIndex = num_glyphs;
165 lastIndex =
170 for (int gId = firstIndex; gId <= lastIndex; gId++) {
172 if (gId < lastIndex) {
247 if (curRange->fStartId == lastIndex) {
249 SkASSERT(prevRange->fNext->fStartId == lastIndex);
252 finishRange(curRange, lastIndex - 1,

Completed in 499 milliseconds

1 2 3 4 5 6 7