Home
last modified time | relevance | path

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

123

/third_party/jerryscript/tests/jerry/es2015/
H A Dregexp-routines.js118 r.lastIndex = 2;
120 assert (r.lastIndex === 0);
122 r.lastIndex = 5;
124 assert (r.lastIndex === 0);
127 r.lastIndex = 2;
129 assert (r.lastIndex === 2);
131 r.lastIndex = 5;
133 assert (r.lastIndex === 0);
135 r.lastIndex = 2;
139 assert (r.lastIndex
[all...]
H A Dsymbol-search.js37 get lastIndex() {
38 throw "abrupt get lastIndex"
43 assert (e === "abrupt get lastIndex");
48 get lastIndex() {
51 set lastIndex(idx) {
52 throw "abrupt set lastIndex"
57 assert (e === "abrupt set lastIndex");
203 lastIndex: "Duck",
220 get lastIndex () {
223 set lastIndex (
[all...]
H A Dsymbol-replace.js60 set lastIndex(idx) {
61 throw "abrupt lastIndex"
66 assert (e === "abrupt lastIndex");
216 get lastIndex() {
217 throw "abrupt lastIndex get"
219 set lastIndex(i) {},
237 assert (e === "abrupt lastIndex get");
243 get lastIndex() {
246 throw "abrupt lastIndex toNumber"
250 set lastIndex(
[all...]
H A Dregexp-flags.js51 r.lastIndex = 3;
54 assert (r.lastIndex === 6);
58 assert (r.lastIndex === 0);
H A Dsymbol-split.js89 this.lastIndex++;
101 this.lastIndex++;
H A Dregexp-new-target.js18 assert(obj.lastIndex === 9)
/third_party/jerryscript/tests/jerry/
H A Dregexp-routines.js44 * updates the lastIndex propertyand see if the match restarts.
50 assert (re.lastIndex === 1);
53 assert (re.lastIndex === 0);
58 assert (re.lastIndex === 1);
87 re2.lastIndex = 2;
95 assert (re2.lastIndex === 0);
103 assert (re2.lastIndex === 0);
H A Dstring-prototype-search.js33 regexp.lastIndex = "index";
37 assert (regexp.lastIndex === "index");
H A Dregexp-assertions.js154 t.lastIndex = {toString: function () { return "4"}};
160 t.lastIndex = {valueOf: function () { return "4"}};
166 t.lastIndex = "2"
/third_party/node/test/fixtures/wpt/streams/transform-streams/
H A Dlipfuzz.any.js8 this.lastIndex = undefined;
14 // lastIndex is the index of the first character after the last substitution.
15 this.lastIndex = 0;
20 partialAtEndRegexp.lastIndex = this.lastIndex;
21 this.lastIndex = undefined;
41 this.lastIndex = offset + replacement.length;
/third_party/icu/icu4c/source/i18n/
H A Dunits_complexconverter.cpp245 int32_t lastIndex = unitsConverters_.length() - 1; in applyRounder() local
246 if (lastIndex == 0) { in applyRounder()
252 int64_t carry = static_cast<int64_t>(floor(unitsConverters_[lastIndex]->convertInverse(quantity) * (1 + DBL_EPSILON))); in applyRounder()
256 quantity -= unitsConverters_[lastIndex]->convert(static_cast<double>(carry)); in applyRounder()
257 intValues[lastIndex - 1] += carry; in applyRounder()
260 for (int32_t j = lastIndex - 1; j > 0; j--) { in applyRounder()
/third_party/node/deps/icu-small/source/i18n/
H A Dunits_complexconverter.cpp247 int32_t lastIndex = unitsConverters_.length() - 1; in applyRounder() local
248 if (lastIndex == 0) { in applyRounder()
254 int64_t carry = static_cast<int64_t>(floor(unitsConverters_[lastIndex]->convertInverse(quantity) * (1 + DBL_EPSILON))); in applyRounder()
258 quantity -= unitsConverters_[lastIndex]->convert(static_cast<double>(carry)); in applyRounder()
259 intValues[lastIndex - 1] += carry; in applyRounder()
262 for (int32_t j = lastIndex - 1; j > 0; j--) { in applyRounder()
/third_party/skia/third_party/externals/icu/source/i18n/
H A Dunits_complexconverter.cpp240 int32_t lastIndex = unitsConverters_.length() - 1; in applyRounder() local
241 if (lastIndex == 0) { in applyRounder()
247 int64_t carry = floor(unitsConverters_[lastIndex]->convertInverse(quantity) * (1 + DBL_EPSILON)); in applyRounder()
251 quantity -= unitsConverters_[lastIndex]->convert(carry); in applyRounder()
252 intValues[lastIndex - 1] += carry; in applyRounder()
255 for (int32_t j = lastIndex - 1; j > 0; j--) { in applyRounder()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/units/
H A DComplexUnitsConverter.java253 int lastIndex = unitsConverters_.size() - 1; in applyRounder()
254 BigDecimal carry = unitsConverters_.get(lastIndex).convertInverse(quantity).multiply(EPSILON_MULTIPLIER) in applyRounder()
259 quantity = quantity.subtract(unitsConverters_.get(lastIndex).convert(carry)); in applyRounder()
260 intValues.set(lastIndex - 1, intValues.get(lastIndex - 1).add(carry.toBigInteger())); in applyRounder()
263 for (int j = lastIndex - 1; j > 0; j--) { in applyRounder()
/third_party/node/lib/internal/readline/
H A Dinterface.js601 lineEnding.lastIndex = 0; // Start the search from the beginning of the string.
608 const indexes = [0, newPartContainsEnding.index, lineEnding.lastIndex];
611 ArrayPrototypePush(indexes, nextMatch.index, lineEnding.lastIndex);
613 const lastIndex = indexes.length - 1;
615 this[kLine_buffer] = StringPrototypeSlice(string, indexes[lastIndex]);
616 for (let i = 1; i < lastIndex; i += 2) {
1334 lineEnding.lastIndex = 0;
1337 let lastIndex = 0;
1339 this[kInsertString](StringPrototypeSlice(s, lastIndex, nextMatch.index));
1340 ({ lastIndex }
[all...]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
H A DRangeDateRule.java135 int lastIndex = ranges.size(); in startIndex()
142 lastIndex = i; in startIndex()
144 return lastIndex; in startIndex()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/util/
H A DRangeDateRule.java133 int lastIndex = ranges.size(); in startIndex()
140 lastIndex = i; in startIndex()
142 return lastIndex; in startIndex()
/third_party/node/test/parallel/
H A Dtest-repl-tab-complete.js296 let lastIndex = -1;
299 lastIndex = data[0].indexOf(`node:${lib}`);
300 assert.notStrictEqual(lastIndex, -1);
302 assert.strictEqual(data[0][lastIndex + 1], '');
304 assert.strictEqual(data[0][lastIndex + 2], 'net');
305 assert.strictEqual(data[0][lastIndex + 3], '');
307 data[0].slice(lastIndex + 4).forEach((completion) => {
/third_party/skia/third_party/externals/dawn/src/dawn_node/binding/
H A DGPUAdapter.cpp30 const size_t lastIndex = s.length() - 1; in Split() local
34 while (i <= lastIndex) { in Split()
40 } else if (i == lastIndex) { in Split()
/third_party/node/deps/npm/node_modules/columnify/
H A Dcolumnify.js291 var lastIndex = target.lastIndexOf(searchString);
292 return lastIndex !== -1 && lastIndex === position;
H A Dindex.js282 let lastIndex = target.lastIndexOf(searchString);
283 return lastIndex !== -1 && lastIndex === position;
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/util/
H A DUnicodeMap.java65 private int lastIndex; field in UnicodeMap
89 lastIndex = 0; in clear()
287 if (transitions[lastIndex] <= codepoint in _put()
288 && codepoint < transitions[lastIndex+1]) { in _put()
289 baseIndex = lastIndex; in _put()
373 lastIndex = baseIndex; // store for next time in _put()
/third_party/icu/icu4j/main/tests/framework/src/com/ibm/icu/dev/util/
H A DUnicodeMap.java62 private int lastIndex; field in UnicodeMap
86 lastIndex = 0; in clear()
284 if (transitions[lastIndex] <= codepoint in _put()
285 && codepoint < transitions[lastIndex+1]) { in _put()
286 baseIndex = lastIndex; in _put()
370 lastIndex = baseIndex; // store for next time in _put()
/third_party/node/deps/npm/lib/utils/
H A Dreplace-info.js14 index = splitChars.lastIndex
/third_party/lzma/CPP/Windows/Control/
H A DListView.h120 bool RedrawItems(int firstIndex, int lastIndex) { return BOOLToBool(ListView_RedrawItems(_window, firstIndex, lastIndex)); } in RedrawItems() argument

Completed in 15 milliseconds

123