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

12

/external/v8/test/mjsunit/regress/
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...]
/external/webkit/JavaScriptCore/runtime/
H A DRegExpObject.h37 void setLastIndex(double lastIndex) { d->lastIndex = lastIndex; } argument
38 double lastIndex() const { return d->lastIndex; } function in class:JSC::RegExpObject
64 RegExpObjectData(NonNullPassRefPtr<RegExp> regExp, double lastIndex) argument
66 , lastIndex(lastIndex)
71 double lastIndex; member in struct:JSC::RegExpObject::RegExpObjectData
H A DRegExpObject.cpp56 lastIndex regExpObjectLastIndex DontDelete|DontEnum
102 return jsNumber(exec, asRegExpObject(slot.slotBase())->lastIndex());
156 if (d->lastIndex < 0 || d->lastIndex > input.size()) {
157 d->lastIndex = 0;
163 regExpConstructor->performMatch(d->regExp.get(), input, static_cast<int>(d->lastIndex), position, length);
165 d->lastIndex = 0;
169 d->lastIndex = position + length;
/external/webkit/JavaScriptCore/tests/mozilla/ecma_2/RegExp/
H A Dproperties-002.js20 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
[all...]
H A Dconstructor-001.js23 * - lastIndex property is set to 0
62 "(new RegExp()).lastIndex",
64 re.lastIndex );
H A Dfunction-001.js23 * - lastIndex property is set to 0
62 "(new RegExp()).lastIndex",
64 re.lastIndex );
H A Dproperties-001.js82 AddTestCase( re + ".lastIndex",
84 re.lastIndex );
/external/apache-http/src/org/apache/http/message/
H A DBasicListHeaderIterator.java68 protected int lastIndex; field in class:BasicListHeaderIterator
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/JavaScriptCore/tests/mozilla/ecma_3/RegExp/
H A D15.10.6.2-2.js38 * 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 i
[all...]
/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/webkit/JavaScriptCore/tests/mozilla/ecma_2/String/
H A Dmatch-003.js19 * 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
[all...]
H A Dmatch-002.js19 * 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...]
H A Dmatch-004.js19 * 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
[all...]
/external/webkit/JavaScriptCore/tests/mozilla/js1_2/regexp/
H A DRegExp_lastIndex.js24 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/v8/src/
H A Dregexp.js91 %SetProperty(object, 'lastIndex', 0, DONT_DELETE | DONT_ENUM);
97 %IgnoreAttributesAndSetProperty(object, 'lastIndex', 0);
157 var lastIndex = this.lastIndex;
158 var i = this.global ? TO_INTEGER(lastIndex) : 0;
161 this.lastIndex = 0;
165 %_Log('regexp', 'regexp-exec,%0r,%1S,%2i', [this, s, lastIndex]);
170 if (this.global) this.lastIndex = 0;
189 this.lastIndex = lastMatchInfo[CAPTURE1];
214 var lastIndex
[all...]
H A Dstring.js466 var last_idx = regexp.lastIndex; // keep old lastIndex
467 regexp.lastIndex = 0; // ignore re.global property
469 regexp.lastIndex = last_idx; // restore lastIndex
/external/junit/src/junit/textui/
H A DTestRunner.java169 int lastIndex= arg.lastIndexOf('.');
170 testCase= arg.substring(0, lastIndex);
171 method= arg.substring(lastIndex + 1);
/external/v8/test/mjsunit/
H A Dstring-match.js98 re_nog.lastIndex = 2;
100 testMatch("Nonglobal-ignore-lastIndex", stringSample, re_nog,
119 re.lastIndex = 10;
121 testMatch("Global-ignore-lastIndex", stringSample2, re,
H A Dregexp.js398 assertEquals(0, re.lastIndex);
405 assertEquals(0, re.lastIndex);
407 re.lastIndex = 42;
418 assertEquals(0, re.lastIndex);
425 re.lastIndex = -1;
436 assertEquals(0, re.lastIndex);
/external/webkit/WebKit/chromium/src/
H A DSuggestionsPopupMenuClient.h65 virtual WebCore::String itemToolTip(unsigned lastIndex) const { return WebCore::String(); }
/external/skia/src/core/
H A DSkRegion_path.cpp242 int lastIndex = gPathVerbToInitialLastIndex[verb]; local
243 if (lastIndex > 0) {
244 for (int i = 1; i <= lastIndex; i++) {
/external/bluetooth/bluez/src/
H A Dsdpd-request.c455 short lastIndex = 0; local
469 lastIndex = cstate->cStateValue.lastIndexSent;
476 lastIndex = 0;
491 for (i = lastIndex; (i - lastIndex) < actual && i < rsp_count; i++) {
503 bt_put_unaligned(htons(i - lastIndex), (uint16_t *)pCurrentRecordCount);
/external/webkit/WebKit/android/nav/
H A DFindCanvas.cpp216 int lastIndex = count - 1; local
217 r.fRight = paint.measureText(&glyphs[lastIndex], sizeof(uint16_t), 0)
218 + xPos[lastIndex];
/external/proguard/src/proguard/optimize/evaluation/
H A DPartialEvaluator.java1195 int lastIndex = -1;
1221 lastIndex = index;
1228 lastIndex >= 0)
1230 TracedVariables tracedVariables = variablesAfter[lastIndex];
/external/webkit/WebCore/inspector/front-end/
H A DConsoleView.js321 var lastIndex = expressionString.length - 1;
323 var dotNotation = (expressionString[lastIndex] === ".");
324 var bracketNotation = (expressionString[lastIndex] === "[");
327 expressionString = expressionString.substr(0, lastIndex);

Completed in 316 milliseconds

12