Home
last modified time | relevance | path

Searched refs:endIndex (Results 1 – 25 of 126) sorted by relevance

123456

/external/jsilver/src/com/google/streamhtmlparser/util/
DJavascriptTokenBuffer.java61 private int endIndex; field in JavascriptTokenBuffer
70 endIndex = 0; in JavascriptTokenBuffer()
83 endIndex = aJavascriptTokenBuffer.endIndex; in JavascriptTokenBuffer()
115 buffer[endIndex] = input; in appendChar()
116 endIndex = (endIndex + 1) % buffer.length; in appendChar()
117 if (endIndex == startIndex) { in appendChar()
118 startIndex = (endIndex + 1) % buffer.length; in appendChar()
129 if (startIndex == endIndex) { in popChar()
132 endIndex--; in popChar()
133 if (endIndex < 0) { in popChar()
[all …]
/external/apache-http/src/org/apache/http/util/
DCharArrayBuffer.java211 public int indexOf(int ch, int beginIndex, int endIndex) { in indexOf() argument
215 if (endIndex > this.len) { in indexOf()
216 endIndex = this.len; in indexOf()
218 if (beginIndex > endIndex) { in indexOf()
221 for (int i = beginIndex; i < endIndex; i++) { in indexOf()
233 public String substring(int beginIndex, int endIndex) { in substring() argument
237 if (endIndex > this.len) { in substring()
240 if (beginIndex > endIndex) { in substring()
243 return new String(this.buffer, beginIndex, endIndex - beginIndex); in substring()
246 public String substringTrimmed(int beginIndex, int endIndex) { in substringTrimmed() argument
[all …]
/external/apache-commons-math/src/main/java/org/apache/commons/math/util/
DCompositeFormat.java119 final int endIndex = startIndex + n; in parseNumber() local
120 if (endIndex < source.length()) { in parseNumber()
121 if (source.substring(startIndex, endIndex).compareTo(sb.toString()) == 0) { in parseNumber()
123 pos.setIndex(endIndex); in parseNumber()
144 final int endIndex = pos.getIndex(); in parseNumber() local
147 if (startIndex == endIndex) { in parseNumber()
174 final int endIndex = startIndex + expected.length(); in parseFixedstring() local
176 (endIndex > source.length()) || in parseFixedstring()
177 (source.substring(startIndex, endIndex).compareTo(expected) != 0)) { in parseFixedstring()
185 pos.setIndex(endIndex); in parseFixedstring()
/external/skqp/src/pathops/
DSkLineParameters.h32 int endIndex = 1; in cubicEndPoints() local
33 cubicEndPoints(pts, 0, endIndex); in cubicEndPoints()
38 cubicEndPoints(pts, 0, ++endIndex); in cubicEndPoints()
39 SkASSERT(endIndex == 2); in cubicEndPoints()
44 cubicEndPoints(pts, 0, ++endIndex); // line in cubicEndPoints()
45 SkASSERT(endIndex == 3); in cubicEndPoints()
55 if (NotAlmostEqualUlps(pts[0].fY, pts[++endIndex].fY)) { in cubicEndPoints()
56 if (pts[0].fY > pts[endIndex].fY) { in cubicEndPoints()
61 if (endIndex == 3) { in cubicEndPoints()
64 SkASSERT(endIndex == 2); in cubicEndPoints()
DSkPathOpsConic.h62 void align(int endIndex, SkDPoint* dstPt) const { in align()
63 fPts.align(endIndex, dstPt); in align()
79 bool isLinear(int startIndex, int endIndex) const { in isLinear()
80 return fPts.isLinear(startIndex, endIndex); in isLinear()
DSkPathOpsQuad.cpp175 bool SkDQuad::isLinear(int startIndex, int endIndex) const { in isLinear()
177 lineParameters.quadEndPoints(*this, startIndex, endIndex); in isLinear()
284 void SkDQuad::align(int endIndex, SkDPoint* dstPt) const { in align() argument
285 if (fPts[endIndex].fX == fPts[1].fX) { in align()
286 dstPt->fX = fPts[endIndex].fX; in align()
288 if (fPts[endIndex].fY == fPts[1].fY) { in align()
289 dstPt->fY = fPts[endIndex].fY; in align()
/external/skia/src/pathops/
DSkLineParameters.h32 int endIndex = 1; in cubicEndPoints() local
33 cubicEndPoints(pts, 0, endIndex); in cubicEndPoints()
38 cubicEndPoints(pts, 0, ++endIndex); in cubicEndPoints()
39 SkASSERT(endIndex == 2); in cubicEndPoints()
44 cubicEndPoints(pts, 0, ++endIndex); // line in cubicEndPoints()
45 SkASSERT(endIndex == 3); in cubicEndPoints()
55 if (NotAlmostEqualUlps(pts[0].fY, pts[++endIndex].fY)) { in cubicEndPoints()
56 if (pts[0].fY > pts[endIndex].fY) { in cubicEndPoints()
61 if (endIndex == 3) { in cubicEndPoints()
64 SkASSERT(endIndex == 2); in cubicEndPoints()
DSkPathOpsConic.h62 void align(int endIndex, SkDPoint* dstPt) const { in align()
63 fPts.align(endIndex, dstPt); in align()
79 bool isLinear(int startIndex, int endIndex) const { in isLinear()
80 return fPts.isLinear(startIndex, endIndex); in isLinear()
DSkPathOpsQuad.cpp178 bool SkDQuad::isLinear(int startIndex, int endIndex) const { in isLinear()
180 lineParameters.quadEndPoints(*this, startIndex, endIndex); in isLinear()
287 void SkDQuad::align(int endIndex, SkDPoint* dstPt) const { in align() argument
288 if (fPts[endIndex].fX == fPts[1].fX) { in align()
289 dstPt->fX = fPts[endIndex].fX; in align()
291 if (fPts[endIndex].fY == fPts[1].fY) { in align()
292 dstPt->fY = fPts[endIndex].fY; in align()
/external/proguard/src/proguard/
DWordReader.java188 int endIndex; in nextWord() local
212 endIndex = currentIndex++; in nextWord()
233 endIndex = currentIndex; in nextWord()
236 while (endIndex > startIndex && in nextWord()
237 Character.isWhitespace(currentLine.charAt(endIndex-1))) in nextWord()
239 endIndex--; in nextWord()
245 endIndex = ++currentIndex; in nextWord()
264 endIndex = currentIndex; in nextWord()
268 currentWord = currentLine.substring(startIndex, endIndex); in nextWord()
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.JavaExtensions/
DSubList.cs16 public SubList( IList source, int startIndex, int endIndex ) in SubList() argument
20 if ( startIndex < 0 || endIndex < 0 ) in SubList()
22 if ( startIndex > endIndex || endIndex >= source.Count ) in SubList()
27 _endIndex = endIndex; in SubList()
177 public SubList( IList<T> source, int startIndex, int endIndex ) in SubList() argument
181 if ( startIndex < 0 || endIndex < 0 ) in SubList()
183 if ( startIndex > endIndex || endIndex >= source.Count ) in SubList()
188 _endIndex = endIndex; in SubList()
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/misc/
DUtils.java64 int endIndex = src.indexOf(replacee); in replace() local
65 while(endIndex != -1) { in replace()
66 result.append(src.substring(startIndex,endIndex)); in replace()
70 startIndex = endIndex + replacee.length(); in replace()
71 endIndex = src.indexOf(replacee,startIndex); in replace()
/external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/layout/
DClassTable.java182 int endIndex; in writeClassTable() local
184 for (endIndex = startIndex; endIndex < classTable.length; endIndex += 1) { in writeClassTable()
185 if (classTable[endIndex].getGlyphID() != nextID || in writeClassTable()
186 classTable[endIndex].getClassID() != classID) { in writeClassTable()
200 startIndex = endIndex; in writeClassTable()
/external/protobuf/java/core/src/main/java/com/google/protobuf/
DNioByteString.java95 public ByteString substring(int beginIndex, int endIndex) { in substring() argument
97 ByteBuffer slice = slice(beginIndex, endIndex); in substring()
279 private ByteBuffer slice(int beginIndex, int endIndex) { in slice() argument
280 if (beginIndex < buffer.position() || endIndex > buffer.limit() || beginIndex > endIndex) { in slice()
282 String.format("Invalid indices [%d, %d]", beginIndex, endIndex)); in slice()
287 slice.limit(endIndex - buffer.position()); in slice()
DByteString.java258 public abstract ByteString substring(int beginIndex, int endIndex); in substring() argument
1208 static int checkRange(int startIndex, int endIndex, int size) { in checkRange() argument
1209 final int length = endIndex - startIndex; in checkRange()
1210 if ((startIndex | endIndex | length | (size - endIndex)) < 0) { in checkRange()
1214 if (endIndex < startIndex) { in checkRange()
1216 "Beginning index larger than ending index: " + startIndex + ", " + endIndex); in checkRange()
1219 throw new IndexOutOfBoundsException("End index: " + endIndex + " >= " + size); in checkRange()
1273 public final ByteString substring(int beginIndex, int endIndex) { in substring() argument
1274 final int length = checkRange(beginIndex, endIndex, size()); in substring()
/external/drrickorang/LoopbackApp/app/src/main/java/org/drrickorang/loopback/
DAudioFileOutput.java60 public boolean writeRingBufferData(double[] data, int startIndex, int endIndex) { in writeRingBufferData() argument
70 int sampleCount = endIndex - startIndex; in writeRingBufferData()
76 if (endIndex > startIndex) { in writeRingBufferData()
77 writeDataBuffer(data, startIndex, endIndex); in writeRingBufferData()
80 writeDataBuffer(data, 0, endIndex); in writeRingBufferData()
/external/icu/icu4c/source/i18n/
Dufieldpositer.cpp44 int32_t *beginIndex, int32_t *endIndex) in ufieldpositer_next() argument
53 if (endIndex) { in ufieldpositer_next()
54 *endIndex = fp.getEndIndex(); in ufieldpositer_next()
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/text/
DSearchIterator.java152 int endIndex() { in endIndex() method in SearchIterator.Search
190 || position > search_.endIndex()) { in setIndex()
193 search_.beginIndex() + " and " + search_.endIndex()); in setIndex()
406 int endIdx = search_.endIndex(); in next()
455 index = search_.endIndex(); // m_search_->textLength in ICU4C in previous()
583 int endIdx = search_.endIndex(); in last()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DSearchIterator.java149 int endIndex() { in endIndex() method in SearchIterator.Search
185 || position > search_.endIndex()) { in setIndex()
188 search_.beginIndex() + " and " + search_.endIndex()); in setIndex()
391 int endIdx = search_.endIndex(); in next()
439 index = search_.endIndex(); // m_search_->textLength in ICU4C in previous()
561 int endIdx = search_.endIndex(); in last()
/external/testng/src/main/java/org/testng/mustache/
DMustache.java44 int endIndex = findClosingIndex(template, ti, conditionalVariable); in run()
52 String subTemplate = template.substring(ti + variable.length() + 4, endIndex); in run()
62 String subTemplate = template.substring(ti + variable.length() + 4, endIndex); in run()
68 ti = endIndex + variable.length() + 4; in run()
/external/guava/guava/src/com/google/common/escape/
DUnicodeEscaper.java224 int endIndex = destIndex + charsSkipped; in escapeSlow() local
225 if (dest.length < endIndex) { in escapeSlow()
226 dest = growBuffer(dest, destIndex, endIndex); in escapeSlow()
229 destIndex = endIndex; in escapeSlow()
/external/caliper/caliper/src/main/java/com/google/caliper/worker/
DAllAllocationsRecorder.java50 int endIndex = 2;
59 endIndex = i;
67 new Allocation(desc, size, asList(stackTrace).subList(startIndex, endIndex + 1)));
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DStringRange.java266 …private static void add(int endIndex, int startOffset, int[] starts, int[] ends, StringBuilder bui… in add() argument
267 int start = starts[endIndex+startOffset]; in add()
268 int end = ends[endIndex]; in add()
272 boolean last = endIndex == ends.length - 1; in add()
279 add(endIndex+1, startOffset, starts, ends, builder, output); in add()
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DStringRange.java270 …private static void add(int endIndex, int startOffset, int[] starts, int[] ends, StringBuilder bui… in add() argument
271 int start = starts[endIndex+startOffset]; in add()
272 int end = ends[endIndex]; in add()
276 boolean last = endIndex == ends.length - 1; in add()
283 add(endIndex+1, startOffset, starts, ends, builder, output); in add()
/external/snakeyaml/src/main/java/org/yaml/snakeyaml/external/com/google/gdata/util/common/base/
DUnicodeEscaper.java231 int endIndex = destIndex + charsSkipped; in escapeSlow() local
232 if (dest.length < endIndex) { in escapeSlow()
233 dest = growBuffer(dest, destIndex, endIndex); in escapeSlow()
236 destIndex = endIndex; in escapeSlow()

123456