HomeSort by relevance Sort by last modified time
    Searched refs:lastIndex (Results 1 - 25 of 67) sorted by null

1 2 3

  /external/webkit/JavaScriptCore/runtime/
RegExpObject.h 37 void setLastIndex(double lastIndex) { d->lastIndex = lastIndex; }
38 double lastIndex() const { return d->lastIndex; }
64 RegExpObjectData(NonNullPassRefPtr<RegExp> regExp, double lastIndex)
66 , lastIndex(lastIndex)
71 double lastIndex;
RegExpObject.cpp 56 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/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...]
  /external/webkit/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 );
  /dalvik/libdex/
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...]
DexClass.c 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...]
  /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/webkit/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...]
  /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())
  /external/webkit/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-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...]
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...]
  /external/webkit/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...]
  /dalvik/dx/src/com/android/dx/dex/file/
EncodedMember.java 78 * @param lastIndex {@code >= 0;} the previous member index value encoded, or
85 int lastIndex, int dumpSeq);
EncodedField.java 134 int lastIndex, int dumpSeq) {
136 int diff = fieldIdx - lastIndex;
EncodedMethod.java 160 int lastIndex, int dumpSeq) {
162 int diff = methodIdx - lastIndex;
  /packages/apps/Gallery3D/src/com/cooliris/media/
PathBarLayer.java 80 int lastIndex = components.size() - 1;
81 if (lastIndex < 0) {
84 Component retVal = components.get(lastIndex);
92 int lastIndex = components.size() - 1;
93 if (lastIndex < 0) {
96 Component retVal = components.get(lastIndex);
97 components.remove(lastIndex);
  /external/junit/src/junit/textui/
TestRunner.java 169 int lastIndex= arg.lastIndexOf('.');
170 testCase= arg.substring(0, lastIndex);
171 method= arg.substring(lastIndex + 1);
  /external/v8/src/
regexp.js 91 %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 = this.lastIndex
    [all...]
  /libcore/luni/src/main/java/org/apache/harmony/luni/net/
Socks4Message.java 202 int lastIndex = index + maxLength;
203 while (index < lastIndex && (buffer[index] != 0)) {
  /external/webkit/WebKit/chromium/src/
SuggestionsPopupMenuClient.h 65 virtual WebCore::String itemToolTip(unsigned lastIndex) const { return WebCore::String(); }
  /frameworks/base/test-runner/src/android/test/
ClassPathPackageInfoSource.java 282 int lastIndex = entryName.lastIndexOf('/');
284 String packageName = entryName.substring(0, lastIndex + 1);
286 lastIndex = entryName.lastIndexOf('/', lastIndex - 1);
287 } while (lastIndex > 0);
  /libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/lang/
ThrowableTest.java 202 int lastIndex = 0;
203 while (lastIndex < trace.length()) {
204 int index = trace.indexOf('\n', lastIndex);
207 String line = trace.substring(lastIndex, index);
208 lastIndex = index + 1;

Completed in 247 milliseconds

1 2 3