Home
last modified time | relevance | path

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

1234

/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/authoring/builder/
DByteBufferHelper.java30 int lastIndex = nuSamples.size() - 1; in mergeAdjacentBuffers() local
31 …if (lastIndex >= 0 && buffer.hasArray() && nuSamples.get(lastIndex).hasArray() && buffer.array() =… in mergeAdjacentBuffers()
32 …nuSamples.get(lastIndex).arrayOffset() + nuSamples.get(lastIndex).limit() == buffer.arrayOffset())… in mergeAdjacentBuffers()
33 ByteBuffer oldBuffer = nuSamples.remove(lastIndex); in mergeAdjacentBuffers()
37 } else if (lastIndex >= 0 && in mergeAdjacentBuffers()
38 … buffer instanceof MappedByteBuffer && nuSamples.get(lastIndex) instanceof MappedByteBuffer && in mergeAdjacentBuffers()
39 … nuSamples.get(lastIndex).limit() == nuSamples.get(lastIndex).capacity() - buffer.capacity()) { in mergeAdjacentBuffers()
41 ByteBuffer oldBuffer = nuSamples.get(lastIndex); in mergeAdjacentBuffers()
DDefaultMp4Builder.java558 int lastIndex = nuSamples.size() - 1; in unifyAdjacentBuffers() local
559 …if (lastIndex >= 0 && buffer.hasArray() && nuSamples.get(lastIndex).hasArray() && buffer.array() =… in unifyAdjacentBuffers()
560 …nuSamples.get(lastIndex).arrayOffset() + nuSamples.get(lastIndex).limit() == buffer.arrayOffset())… in unifyAdjacentBuffers()
561 ByteBuffer oldBuffer = nuSamples.remove(lastIndex); in unifyAdjacentBuffers()
565 } else if (lastIndex >= 0 && in unifyAdjacentBuffers()
566 … buffer instanceof MappedByteBuffer && nuSamples.get(lastIndex) instanceof MappedByteBuffer && in unifyAdjacentBuffers()
567 … nuSamples.get(lastIndex).limit() == nuSamples.get(lastIndex).capacity() - buffer.capacity()) { in unifyAdjacentBuffers()
569 ByteBuffer oldBuffer = nuSamples.get(lastIndex); in unifyAdjacentBuffers()
/external/v8/src/builtins/
Dregexp-match-all.tq46 // 7. Let lastIndex be ? ToLength(? Get(R, "lastIndex")).
47 // 8. Perform ? Set(matcher, "lastIndex", lastIndex, true).
49 FastStoreLastIndex(matcherRegExp, fastRegExp.lastIndex);
72 // 7. Let lastIndex be ? ToLength(? Get(R, "lastIndex")).
73 const lastIndex: Number = ToLength_Inline(SlowLoadLastIndex(receiver));
75 // 8. Perform ? Set(matcher, "lastIndex", lastIndex, true).
76 SlowStoreLastIndex(UnsafeCast<JSReceiver>(matcher), lastIndex);
138 const lastIndex = LoadLastIndexAsLength(regexp, true);
141 regexp, iteratingString, lastIndex)
144 regexp, matchIndices, iteratingString, lastIndex);
[all …]
Dregexp.tq80 let lastIndex = regexpLastIndex;
91 if (!TaggedIsSmi(lastIndex) || (lastIndex > string.length_smi)) {
96 lastIndex = SmiConstant(0);
102 RegExpExecInternal(regexp, string, lastIndex, lastMatchInfo);
126 const lastIndex = LoadLastIndexAsLength(regexp, true);
127 return RegExpPrototypeExecBodyWithoutResult(regexp, string, lastIndex, true)
134 lastIndex: Number): RegExpMatchInfo labels IfDidNotMatch {
135 return RegExpPrototypeExecBodyWithoutResult(regexp, string, lastIndex, true)
151 const lastIndex = LoadLastIndexAsLength(regexp, isFastPath);
153 regexp, string, lastIndex, isFastPath) otherwise return Null;
[all …]
Dregexp-match.tq97 let lastIndex = LoadLastIndex(regexp, isFastPath);
99 assert(TaggedIsPositiveSmi(lastIndex));
101 lastIndex = ToLength_Inline(lastIndex);
105 string, UnsafeCast<Number>(lastIndex), isUnicode, isFastPath);
108 // On the fast path, we can be certain that lastIndex can never be
Dregexp-replace.tq84 regexp.lastIndex = 0;
94 regexp.lastIndex = 0;
135 fastRegexp.lastIndex = 0;
155 // If match is the empty string, we have to increment lastIndex.
159 fastRegexp.lastIndex =
160 AdvanceStringIndexFast(string, fastRegexp.lastIndex, unicode);
163 const lastIndex: JSAny = SlowLoadLastIndex(regexp);
164 const thisIndex: Number = ToLength_Inline(lastIndex);
/external/proguard/src/proguard/classfile/util/
DInternalTypeEnumeration.java38 private int lastIndex; field in InternalTypeEnumeration
49 this.lastIndex = descriptor.indexOf(ClassConstants.METHOD_ARGUMENTS_CLOSE); in InternalTypeEnumeration()
52 if (lastIndex < 0) in InternalTypeEnumeration()
54 lastIndex = descriptor.length(); in InternalTypeEnumeration()
84 return index < lastIndex; in hasMoreTypes()
123 return descriptor.substring(lastIndex + 1); in returnType()
202 if (enumeration.lastIndex < descriptor.length()) in main()
/external/apache-http/src/org/apache/http/message/
DBasicListHeaderIterator.java73 protected int lastIndex; field in BasicListHeaderIterator
100 this.lastIndex = -1; in BasicListHeaderIterator()
167 this.lastIndex = current; in nextHeader()
194 if (this.lastIndex < 0) { in remove()
197 this.allHeaders.remove(this.lastIndex); in remove()
198 this.lastIndex = -1; in remove()
/external/antlr/runtime/CSharp3/Sources/Antlr3.Runtime/
DTokenRewriteStream.cs171 public int lastIndex; field in Antlr.Runtime.TokenRewriteStream.ReplaceOp
175 lastIndex = to; in ReplaceOp()
184 return lastIndex + 1; in Execute()
191 … return string.Format("<DeleteOp@{0}..{1}>", stream._tokens[index], stream._tokens[lastIndex]); in ToString()
194 …ing.Format("<ReplaceOp@{0}..{1}:\"{2}\">", stream._tokens[index], stream._tokens[lastIndex], text); in ToString()
590 else if (iop.index > rop.index && iop.index <= rop.lastIndex) in ReduceToSingleOperationPerIndex()
601 if ( prevRop.index >= rop.index && prevRop.lastIndex <= rop.lastIndex ) in ReduceToSingleOperationPerIndex()
609 prevRop.lastIndex < rop.index || prevRop.index > rop.lastIndex; in ReduceToSingleOperationPerIndex()
611 prevRop.index == rop.index && prevRop.lastIndex == rop.lastIndex; in ReduceToSingleOperationPerIndex()
619 rop.lastIndex = Math.Max(prevRop.lastIndex, rop.lastIndex); in ReduceToSingleOperationPerIndex()
[all …]
/external/antlr/runtime/Java/src/main/java/org/antlr/runtime/
DTokenRewriteStream.java139 protected int lastIndex; field in TokenRewriteStream.ReplaceOp
142 lastIndex = to; in ReplaceOp()
149 return lastIndex+1; in execute()
155 ".."+tokens.get(lastIndex)+">"; in toString()
158 ".."+tokens.get(lastIndex)+":\""+text+"\">"; in toString()
479 else if ( iop.index > rop.index && iop.index <= rop.lastIndex ) { in reduceToSingleOperationPerIndex()
488 if ( prevRop.index>=rop.index && prevRop.lastIndex <= rop.lastIndex ) { in reduceToSingleOperationPerIndex()
495 prevRop.lastIndex<rop.index || prevRop.index > rop.lastIndex; in reduceToSingleOperationPerIndex()
497 prevRop.index==rop.index && prevRop.lastIndex==rop.lastIndex; in reduceToSingleOperationPerIndex()
504 rop.lastIndex = Math.max(prevRop.lastIndex, rop.lastIndex); in reduceToSingleOperationPerIndex()
[all …]
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/src/
DCoroutineContext.kt70 var lastIndex = oldName.lastIndexOf(DEBUG_THREAD_NAME_SEPARATOR) in toString() variable
71 if (lastIndex < 0) lastIndex = oldName.length in toString()
72 currentThread.name = buildString(lastIndex + coroutineName.length + 10) { in toString()
73 append(oldName.substring(0, lastIndex)) in toString()
/external/fonttools/Lib/fontTools/ttLib/tables/
D_h_m_t_x.py80 lastIndex = len(metrics)
81 while metrics[lastIndex-2][0] == lastAdvance:
82 lastIndex -= 1
83 if lastIndex <= 1:
85 lastIndex = 1
87 additionalMetrics = metrics[lastIndex:]
89 metrics = metrics[:lastIndex]
/external/antlr/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime/
DTokenRewriteStream.cs151 public int lastIndex; field in Antlr.Runtime.TokenRewriteStream.ReplaceOp
154 lastIndex = to; in ReplaceOp()
160 return lastIndex + 1; in Execute()
163 return "<ReplaceOp@" + index + ".." + lastIndex + ":\"" + text + "\">"; in ToString()
172 return "<DeleteOp@" + index + ".." + lastIndex + ">"; in ToString()
505 if (iop.index >= rop.index && iop.index <= rop.lastIndex) { in ReduceToSingleOperationPerIndex()
514 if (prevRop.index >= rop.index && prevRop.lastIndex <= rop.lastIndex) { in ReduceToSingleOperationPerIndex()
521 prevRop.lastIndex < rop.index || prevRop.index > rop.lastIndex; in ReduceToSingleOperationPerIndex()
523 prevRop.index == rop.index && prevRop.lastIndex == rop.lastIndex; in ReduceToSingleOperationPerIndex()
560 if (iop.index >= rop.index && iop.index <= rop.lastIndex) { in ReduceToSingleOperationPerIndex()
/external/skqp/src/pdf/
DSkPDFMakeCIDGlyphWidthsArray.cpp176 int lastIndex = num_glyphs; in SkPDFMakeCIDGlyphWidthsArray() local
178 while (!subset->has(lastIndex - 1) && lastIndex > 0) { in SkPDFMakeCIDGlyphWidthsArray()
179 --lastIndex; in SkPDFMakeCIDGlyphWidthsArray()
184 for (int gId = 0; gId <= lastIndex; gId++) { in SkPDFMakeCIDGlyphWidthsArray()
186 if (gId < lastIndex) { in SkPDFMakeCIDGlyphWidthsArray()
257 if (curRange.fStartId == lastIndex) { in SkPDFMakeCIDGlyphWidthsArray()
262 finish_range(&curRange, lastIndex - 1, AdvanceMetric::kRange); in SkPDFMakeCIDGlyphWidthsArray()
/external/mockito/src/test/java/org/mockito/internal/verification/checkers/
DNumberOfInvocationsCheckerTest.java164 int lastIndex = 0; in matchesSafely() local
166 while (lastIndex != -1) { in matchesSafely()
167 lastIndex = text.indexOf(expected, lastIndex); in matchesSafely()
168 if (lastIndex != -1) { in matchesSafely()
170 lastIndex += expected.length(); in matchesSafely()
DNumberOfInvocationsInOrderCheckerTest.java205 int lastIndex = 0; in matchesSafely() local
207 while (lastIndex != -1) { in matchesSafely()
208 lastIndex = text.indexOf(expected, lastIndex); in matchesSafely()
209 if (lastIndex != -1) { in matchesSafely()
211 lastIndex += expected.length(); in matchesSafely()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/util/
DStaticInitializerUtil.java56 final int lastIndex = CollectionUtils.lastIndexOf(sortedStaticFields, HAS_INITIALIZER); in getStaticInitializers() local
57 if (lastIndex > -1) { in getStaticInitializers()
64 … Iterable<? extends Field> fields = Iterables.limit(sortedStaticFields, lastIndex + 1); in getStaticInitializers()
69 return lastIndex+1; in getStaticInitializers()
/external/v8/src/objects/
Djs-regexp.tq23 // lastIndex (see RegExpBuiltinsAssembler::BranchIfFastRegExp), it is possible
25 // validate the lastIndex is positive smi when used in fast paths.
32 extern operator '.lastIndex' macro
34 extern operator '.lastIndex=' macro
/external/antlr/runtime/Python/antlr3/
Dstreams.py1002 self.lastIndex = last
1009 return self.lastIndex + 1
1014 return '<DeleteOp@%d..%d>' % (self.index, self.lastIndex)
1017 self.index, self.lastIndex, self.text)
1408 elif iop.index > rop.index and iop.index <= rop.lastIndex:
1415 and prevRop.lastIndex <= rop.lastIndex):
1421 disjoint = (prevRop.lastIndex < rop.index
1422 or prevRop.index > rop.lastIndex)
1424 and prevRop.lastIndex == rop.lastIndex)
1434 rop.lastIndex = max(prevRop.lastIndex, rop.lastIndex)
[all …]
/external/antlr/runtime/Python3/antlr3/
Dstreams.py948 self.lastIndex = last
955 return self.lastIndex + 1
1348 elif iop.index > rop.index and iop.index <= rop.lastIndex:
1355 and prevRop.lastIndex <= rop.lastIndex):
1361 disjoint = (prevRop.lastIndex < rop.index
1362 or prevRop.index > rop.lastIndex)
1364 and prevRop.lastIndex == rop.lastIndex)
1374 rop.lastIndex = max(prevRop.lastIndex, rop.lastIndex)
1407 if iop.index >= rop.index and iop.index <= rop.lastIndex:
/external/vogar/src/vogar/target/
DClassPathScanner.java186 int lastIndex = entryName.lastIndexOf('/'); in getJarEntries() local
188 String packageName = entryName.substring(0, lastIndex + 1); in getJarEntries()
190 lastIndex = entryName.lastIndexOf('/', lastIndex - 1); in getJarEntries()
191 } while (lastIndex > 0); in getJarEntries()
/external/angle/third_party/jsoncpp/source/src/test_lib_json/
Djsontest.cpp172 Json::String::size_type lastIndex = 0; in indentText() local
173 while (lastIndex < text.size()) { in indentText()
174 Json::String::size_type nextIndex = text.find('\n', lastIndex); in indentText()
179 reindented += text.substr(lastIndex, nextIndex - lastIndex + 1); in indentText()
180 lastIndex = nextIndex + 1; in indentText()
/external/jsoncpp/src/test_lib_json/
Djsontest.cpp185 std::string::size_type lastIndex = 0; in indentText() local
186 while (lastIndex < text.size()) { in indentText()
187 std::string::size_type nextIndex = text.find('\n', lastIndex); in indentText()
192 reindented += text.substr(lastIndex, nextIndex - lastIndex + 1); in indentText()
193 lastIndex = nextIndex + 1; in indentText()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DRangeDateRule.java139 int lastIndex = ranges.size(); in startIndex() local
146 lastIndex = i; in startIndex()
148 return lastIndex; in startIndex()
/external/icu/android_icu4j/src/main/java/android/icu/util/
DRangeDateRule.java133 int lastIndex = ranges.size(); in startIndex() local
140 lastIndex = i; in startIndex()
142 return lastIndex; in startIndex()

1234