Home
last modified time | relevance | path

Searched refs:lastIndex (Results 1 – 25 of 127) sorted by relevance

123456

/third_party/jerryscript/tests/jerry/es2015/
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 === 2);
[all …]
Dsymbol-search.js37 get lastIndex() { getter
48 get lastIndex() { getter
51 set lastIndex(idx) { setter
203 lastIndex: "Duck", property
220 get lastIndex () { getter
223 set lastIndex (v) { setter
Dregexp-lastindex.js16 t.lastIndex = -12;
20 assert(t.lastIndex === 3);
22 assert(RegExp.prototype.lastIndex === undefined)
Dsymbol-replace.js60 set lastIndex(idx) { setter
216 get lastIndex() { getter
219 set lastIndex(i) {}, setter
243 get lastIndex() { getter
250 set lastIndex(i) {}, setter
555 assert (re.lastIndex === 0);
557 re.lastIndex = 5;
559 assert (re.lastIndex === 0);
Dregexp-flags.js51 r.lastIndex = 3;
54 assert (r.lastIndex === 6);
58 assert (r.lastIndex === 0);
/third_party/node/deps/npm/node_modules/is-regex/
Dindex.js9 var lastIndex = value.lastIndex;
10 value.lastIndex = 0;
17 value.lastIndex = lastIndex;
Dtest.js41 regex.lastIndex = marker;
42 st.equal(regex.lastIndex, marker, 'lastIndex is the marker object');
44 st.equal(regex.lastIndex, marker, 'lastIndex is the marker object after isRegex');
50 regex.lastIndex = 3;
51 st.equal(regex.lastIndex, 3, 'lastIndex is 3');
53 st.equal(regex.lastIndex, 3, 'lastIndex is 3 after isRegex');
/third_party/jerryscript/tests/jerry/
Dregexp-routines.js50 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);
Dstring-prototype-search.js33 regexp.lastIndex = "index";
37 assert (regexp.lastIndex === "index");
/third_party/flutter/skia/src/pdf/
DSkPDFMakeCIDGlyphWidthsArray.cpp178 int lastIndex = num_glyphs; in SkPDFMakeCIDGlyphWidthsArray() local
180 while (!subset->has(lastIndex - 1) && lastIndex > 0) { in SkPDFMakeCIDGlyphWidthsArray()
181 --lastIndex; in SkPDFMakeCIDGlyphWidthsArray()
186 SkAutoTArray<SkGlyphID> glyphIDs{lastIndex + 1}; in SkPDFMakeCIDGlyphWidthsArray()
187 for (int gId = 0; gId <= lastIndex; gId++) { in SkPDFMakeCIDGlyphWidthsArray()
191 auto glyphs = paths.glyphs(SkMakeSpan(glyphIDs.get(), lastIndex + 1)); in SkPDFMakeCIDGlyphWidthsArray()
193 for (int gId = 0; gId <= lastIndex; gId++) { in SkPDFMakeCIDGlyphWidthsArray()
195 if (gId < lastIndex) { in SkPDFMakeCIDGlyphWidthsArray()
266 if (curRange.fStartId == lastIndex) { in SkPDFMakeCIDGlyphWidthsArray()
271 finish_range(&curRange, lastIndex - 1, AdvanceMetric::kRange); in SkPDFMakeCIDGlyphWidthsArray()
/third_party/typescript_eslint/packages/eslint-plugin-internal/tests/rules/
Dplugin-test-formatting.test.ts14 const lastIndex = strings.length - 1; constant
16 strings.slice(0, lastIndex).reduce((p, s, i) => p + s + keys[i], '') +
17 strings[lastIndex];
32 const lastIndex = strings.length - 1; constant
34 strings.slice(0, lastIndex).reduce((p, s, i) => p + s + keys[i], '') +
35 strings[lastIndex];
/third_party/node/deps/icu-small/source/i18n/
Dunits_complexconverter.cpp240 int32_t lastIndex = unitsConverters_.length() - 1; in applyRounder() local
241 if (lastIndex == 0) { in applyRounder()
247 …int64_t carry = static_cast<int64_t>(floor(unitsConverters_[lastIndex]->convertInverse(quantity) *… in applyRounder()
251 quantity -= unitsConverters_[lastIndex]->convert(static_cast<double>(carry)); in applyRounder()
252 intValues[lastIndex - 1] += carry; in applyRounder()
255 for (int32_t j = lastIndex - 1; j > 0; j--) { in applyRounder()
/third_party/skia/third_party/externals/icu/source/i18n/
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/icu4c/source/i18n/
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/
DComplexUnitsConverter.java250 int lastIndex = unitsConverters_.size() - 1; in applyRounder() local
251 …BigDecimal carry = unitsConverters_.get(lastIndex).convertInverse(quantity).multiply(EPSILON_MULTI… in applyRounder()
256 quantity = quantity.subtract(unitsConverters_.get(lastIndex).convert(carry)); in applyRounder()
257 intValues.set(lastIndex - 1, intValues.get(lastIndex - 1).add(carry.toBigInteger())); in applyRounder()
260 for (int j = lastIndex - 1; j > 0; j--) { in applyRounder()
/third_party/node/deps/npm/node_modules/bluebird/js/release/
Dcontext.js36 var lastIndex = contextStack.length - 1;
37 if (lastIndex >= 0) {
38 return contextStack[lastIndex];
/third_party/jerryscript/tests/jerry/es5.1/
Dregexp-lastindex.js16 t.lastIndex = -12;
19 assert(t.lastIndex === 0);
/third_party/typescript_eslint/packages/experimental-utils/src/eslint-utils/
DRuleTester.ts119 const lastIndex = strings.length - 1; constant
121 strings.slice(0, lastIndex).reduce((p, s, i) => p + s + keys[i], '') +
122 strings[lastIndex]
/third_party/jsoncpp/src/test_lib_json/
Djsontest.cpp174 Json::String::size_type lastIndex = 0; in indentText() local
175 while (lastIndex < text.size()) { in indentText()
176 Json::String::size_type nextIndex = text.find('\n', lastIndex); in indentText()
181 reindented += text.substr(lastIndex, nextIndex - lastIndex + 1); in indentText()
182 lastIndex = nextIndex + 1; in indentText()
/third_party/node/deps/npm/node_modules/clone/
Dclone.js62 if (parent.lastIndex) child.lastIndex = parent.lastIndex;
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/util/
DRangeDateRule.java133 int lastIndex = ranges.size(); in startIndex() local
140 lastIndex = i; in startIndex()
142 return lastIndex; in startIndex()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DRangeDateRule.java135 int lastIndex = ranges.size(); in startIndex() local
142 lastIndex = i; in startIndex()
144 return lastIndex; in startIndex()
/third_party/typescript/tests/baselines/reference/
DconstructorOverloads5.symbols49 lastIndex: boolean;
50 >lastIndex : Symbol(RegExp.lastIndex, Decl(constructorOverloads5.ts, 13, 27))
/third_party/node/test/fixtures/wpt/resources/webidl2/lib/
Dwebidl2.js95 let lastIndex = 0;
97 while (lastIndex < str.length) {
98 const nextChar = str.charAt(lastIndex);
125 if (str.startsWith(punctuation, lastIndex)) {
128 lastIndex += punctuation.length;
129 result = lastIndex;
141 lastIndex = result;
147 re.lastIndex = lastIndex;
154 return re.lastIndex;
/third_party/flutter/flutter/packages/flutter/lib/src/rendering/
Dsliver_fixed_extent_list.dart107 int lastIndex,
114 lastIndex: lastIndex,
250 final int lastIndex = indexOf(lastChild);
252 final double trailingScrollOffset = indexToLayoutOffset(itemExtent, lastIndex + 1);
257 assert(targetLastIndex == null || lastIndex <= targetLastIndex);
262 lastIndex: lastIndex,
288 hasVisualOverflow: (targetLastIndexForPaint != null && lastIndex >= targetLastIndexForPaint)

123456