Home
last modified time | relevance | path

Searched refs:fIter (Results 1 – 24 of 24) sorted by relevance

/external/icu/android_icu4j/src/main/java/android/icu/impl/breakiter/
DThaiBreakEngine.java102 public int divideUpDictionaryRange(CharacterIterator fIter, int rangeStart, int rangeEnd, in divideUpDictionaryRange() argument
116 fIter.setIndex(rangeStart); in divideUpDictionaryRange()
118 while ((current = fIter.getIndex()) < rangeEnd) { in divideUpDictionaryRange()
122 … int candidates = words[wordsFound%THAI_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd); in divideUpDictionaryRange()
126 wordLength = words[wordsFound%THAI_LOOKAHEAD].acceptMarked(fIter); in divideUpDictionaryRange()
133 if (fIter.getIndex() < rangeEnd) { in divideUpDictionaryRange()
136 … if (words[(wordsFound+1)%THAI_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd) > 0) { in divideUpDictionaryRange()
141 if (fIter.getIndex() >= rangeEnd) { in divideUpDictionaryRange()
148 … if (words[(wordsFound+2)%THAI_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd) > 0) { in divideUpDictionaryRange()
152 } while (words[(wordsFound+1)%THAI_LOOKAHEAD].backUp(fIter)); in divideUpDictionaryRange()
[all …]
DKhmerBreakEngine.java91 public int divideUpDictionaryRange(CharacterIterator fIter, int rangeStart, int rangeEnd, in divideUpDictionaryRange() argument
106 fIter.setIndex(rangeStart); in divideUpDictionaryRange()
108 while ((current = fIter.getIndex()) < rangeEnd) { in divideUpDictionaryRange()
112 … int candidates = words[wordsFound % KHMER_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd); in divideUpDictionaryRange()
116 wordLength = words[wordsFound % KHMER_LOOKAHEAD].acceptMarked(fIter); in divideUpDictionaryRange()
124 if (fIter.getIndex() < rangeEnd) { in divideUpDictionaryRange()
126 … if (words[(wordsFound+1)%KHMER_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd) > 0) { in divideUpDictionaryRange()
131 if (fIter.getIndex() >= rangeEnd) { in divideUpDictionaryRange()
138 … if (words[(wordsFound+2)%KHMER_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd) > 0) { in divideUpDictionaryRange()
143 } while (words[(wordsFound+1)%KHMER_LOOKAHEAD].backUp(fIter)); in divideUpDictionaryRange()
[all …]
DLaoBreakEngine.java91 public int divideUpDictionaryRange(CharacterIterator fIter, int rangeStart, int rangeEnd, in divideUpDictionaryRange() argument
107 fIter.setIndex(rangeStart); in divideUpDictionaryRange()
108 while ((current = fIter.getIndex()) < rangeEnd) { in divideUpDictionaryRange()
112 … int candidates = words[wordsFound%LAO_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd); in divideUpDictionaryRange()
116 wordLength = words[wordsFound%LAO_LOOKAHEAD].acceptMarked(fIter); in divideUpDictionaryRange()
124 if (fIter.getIndex() < rangeEnd) { in divideUpDictionaryRange()
126 … if (words[(wordsFound+1)%LAO_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd) > 0) { in divideUpDictionaryRange()
131 if (fIter.getIndex() >= rangeEnd) { in divideUpDictionaryRange()
138 … if (words[(wordsFound+2)%LAO_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd) > 0) { in divideUpDictionaryRange()
143 } while (words[(wordsFound+1)%LAO_LOOKAHEAD].backUp(fIter)); in divideUpDictionaryRange()
[all …]
DBurmeseBreakEngine.java83 public int divideUpDictionaryRange(CharacterIterator fIter, int rangeStart, int rangeEnd, in divideUpDictionaryRange() argument
99 fIter.setIndex(rangeStart); in divideUpDictionaryRange()
100 while ((current = fIter.getIndex()) < rangeEnd) { in divideUpDictionaryRange()
104 … int candidates = words[wordsFound%BURMESE_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd); in divideUpDictionaryRange()
108 wordLength = words[wordsFound%BURMESE_LOOKAHEAD].acceptMarked(fIter); in divideUpDictionaryRange()
116 if (fIter.getIndex() < rangeEnd) { in divideUpDictionaryRange()
118 … if (words[(wordsFound+1)%BURMESE_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd) > 0) { in divideUpDictionaryRange()
123 if (fIter.getIndex() >= rangeEnd) { in divideUpDictionaryRange()
130 … if (words[(wordsFound+2)%BURMESE_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd) > 0) { in divideUpDictionaryRange()
135 } while (words[(wordsFound+1)%BURMESE_LOOKAHEAD].backUp(fIter)); in divideUpDictionaryRange()
[all …]
DDictionaryBreakEngine.java45 public int candidates(CharacterIterator fIter, DictionaryMatcher dict, int rangeEnd) { in candidates() argument
46 int start = fIter.getIndex(); in candidates()
49 prefix = dict.matches(fIter, rangeEnd - start, lengths, count, lengths.length); in candidates()
52 fIter.setIndex(start); in candidates()
56 fIter.setIndex(start + lengths[count[0]-1]); in candidates()
64 public int acceptMarked(CharacterIterator fIter) { in acceptMarked() argument
65 fIter.setIndex(offset + lengths[mark]); in acceptMarked()
71 public boolean backUp(CharacterIterator fIter) { in backUp() argument
73 fIter.setIndex(offset + lengths[--current]); in backUp()
DLSTMBreakEngine.java162 abstract public void vectorize(CharacterIterator fIter, int rangeStart, int rangeEnd, in vectorize() argument
176 public void vectorize(CharacterIterator fIter, int rangeStart, int rangeEnd, in vectorize() argument
178 fIter.setIndex(rangeStart); in vectorize()
179 for (char c = fIter.current(); in vectorize()
180 c != CharacterIterator.DONE && fIter.getIndex() < rangeEnd; in vectorize()
181 c = fIter.next()) { in vectorize()
182 offsets.add(fIter.getIndex()); in vectorize()
354 public int divideUpDictionaryRange(CharacterIterator fIter, int rangeStart, int rangeEnd,
364 fVectorizer.vectorize(fIter, rangeStart, rangeEnd, offsets, indicies);
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/breakiter/
DThaiBreakEngine.java98 public int divideUpDictionaryRange(CharacterIterator fIter, int rangeStart, int rangeEnd, in divideUpDictionaryRange() argument
112 fIter.setIndex(rangeStart); in divideUpDictionaryRange()
114 while ((current = fIter.getIndex()) < rangeEnd) { in divideUpDictionaryRange()
118 … int candidates = words[wordsFound%THAI_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd); in divideUpDictionaryRange()
122 wordLength = words[wordsFound%THAI_LOOKAHEAD].acceptMarked(fIter); in divideUpDictionaryRange()
129 if (fIter.getIndex() < rangeEnd) { in divideUpDictionaryRange()
132 … if (words[(wordsFound+1)%THAI_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd) > 0) { in divideUpDictionaryRange()
137 if (fIter.getIndex() >= rangeEnd) { in divideUpDictionaryRange()
144 … if (words[(wordsFound+2)%THAI_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd) > 0) { in divideUpDictionaryRange()
148 } while (words[(wordsFound+1)%THAI_LOOKAHEAD].backUp(fIter)); in divideUpDictionaryRange()
[all …]
DBurmeseBreakEngine.java79 public int divideUpDictionaryRange(CharacterIterator fIter, int rangeStart, int rangeEnd, in divideUpDictionaryRange() argument
95 fIter.setIndex(rangeStart); in divideUpDictionaryRange()
96 while ((current = fIter.getIndex()) < rangeEnd) { in divideUpDictionaryRange()
100 … int candidates = words[wordsFound%BURMESE_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd); in divideUpDictionaryRange()
104 wordLength = words[wordsFound%BURMESE_LOOKAHEAD].acceptMarked(fIter); in divideUpDictionaryRange()
112 if (fIter.getIndex() < rangeEnd) { in divideUpDictionaryRange()
114 … if (words[(wordsFound+1)%BURMESE_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd) > 0) { in divideUpDictionaryRange()
119 if (fIter.getIndex() >= rangeEnd) { in divideUpDictionaryRange()
126 … if (words[(wordsFound+2)%BURMESE_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd) > 0) { in divideUpDictionaryRange()
131 } while (words[(wordsFound+1)%BURMESE_LOOKAHEAD].backUp(fIter)); in divideUpDictionaryRange()
[all …]
DLaoBreakEngine.java87 public int divideUpDictionaryRange(CharacterIterator fIter, int rangeStart, int rangeEnd, in divideUpDictionaryRange() argument
103 fIter.setIndex(rangeStart); in divideUpDictionaryRange()
104 while ((current = fIter.getIndex()) < rangeEnd) { in divideUpDictionaryRange()
108 … int candidates = words[wordsFound%LAO_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd); in divideUpDictionaryRange()
112 wordLength = words[wordsFound%LAO_LOOKAHEAD].acceptMarked(fIter); in divideUpDictionaryRange()
120 if (fIter.getIndex() < rangeEnd) { in divideUpDictionaryRange()
122 … if (words[(wordsFound+1)%LAO_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd) > 0) { in divideUpDictionaryRange()
127 if (fIter.getIndex() >= rangeEnd) { in divideUpDictionaryRange()
134 … if (words[(wordsFound+2)%LAO_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd) > 0) { in divideUpDictionaryRange()
139 } while (words[(wordsFound+1)%LAO_LOOKAHEAD].backUp(fIter)); in divideUpDictionaryRange()
[all …]
DKhmerBreakEngine.java87 public int divideUpDictionaryRange(CharacterIterator fIter, int rangeStart, int rangeEnd, in divideUpDictionaryRange() argument
102 fIter.setIndex(rangeStart); in divideUpDictionaryRange()
104 while ((current = fIter.getIndex()) < rangeEnd) { in divideUpDictionaryRange()
108 … int candidates = words[wordsFound % KHMER_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd); in divideUpDictionaryRange()
112 wordLength = words[wordsFound % KHMER_LOOKAHEAD].acceptMarked(fIter); in divideUpDictionaryRange()
120 if (fIter.getIndex() < rangeEnd) { in divideUpDictionaryRange()
122 … if (words[(wordsFound+1)%KHMER_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd) > 0) { in divideUpDictionaryRange()
127 if (fIter.getIndex() >= rangeEnd) { in divideUpDictionaryRange()
134 … if (words[(wordsFound+2)%KHMER_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd) > 0) { in divideUpDictionaryRange()
139 } while (words[(wordsFound+1)%KHMER_LOOKAHEAD].backUp(fIter)); in divideUpDictionaryRange()
[all …]
DDictionaryBreakEngine.java41 public int candidates(CharacterIterator fIter, DictionaryMatcher dict, int rangeEnd) { in candidates() argument
42 int start = fIter.getIndex(); in candidates()
45 prefix = dict.matches(fIter, rangeEnd - start, lengths, count, lengths.length); in candidates()
48 fIter.setIndex(start); in candidates()
52 fIter.setIndex(start + lengths[count[0]-1]); in candidates()
60 public int acceptMarked(CharacterIterator fIter) { in acceptMarked() argument
61 fIter.setIndex(offset + lengths[mark]); in acceptMarked()
67 public boolean backUp(CharacterIterator fIter) { in backUp() argument
69 fIter.setIndex(offset + lengths[--current]); in backUp()
DLSTMBreakEngine.java153 abstract public void vectorize(CharacterIterator fIter, int rangeStart, int rangeEnd, in vectorize() argument
167 public void vectorize(CharacterIterator fIter, int rangeStart, int rangeEnd, in vectorize() argument
169 fIter.setIndex(rangeStart); in vectorize()
170 for (char c = fIter.current(); in vectorize()
171 c != CharacterIterator.DONE && fIter.getIndex() < rangeEnd; in vectorize()
172 c = fIter.next()) { in vectorize()
173 offsets.add(fIter.getIndex()); in vectorize()
345 public int divideUpDictionaryRange(CharacterIterator fIter, int rangeStart, int rangeEnd,
355 fVectorizer.vectorize(fIter, rangeStart, rangeEnd, offsets, indicies);
/external/skia/src/core/
DSkPathMeasure.cpp14 : fIter(path, forceClosed, resScale) in SkPathMeasure()
16 fContour = fIter.next(); in SkPathMeasure()
22 fIter.reset(path ? *path : SkPath(), forceClosed); in setPath()
23 fContour = fIter.next(); in setPath()
47 fContour = fIter.next(); in nextContour()
DSkClipStack.cpp790 return (const SkClipStack::Element*)fIter.next(); in next()
794 return (const SkClipStack::Element*)fIter.prev(); in prev()
802 fIter.reset(fStack->fDeque, SkDeque::Iter::kBack_IterStart); in skipToTopmost()
806 for (element = (const SkClipStack::Element*) fIter.prev(); in skipToTopmost()
808 element = (const SkClipStack::Element*) fIter.prev()) { in skipToTopmost()
817 if (nullptr == fIter.next()) { in skipToTopmost()
821 fIter.reset(fStack->fDeque, SkDeque::Iter::kFront_IterStart); in skipToTopmost()
829 fIter.reset(fStack->fDeque, SkDeque::Iter::kFront_IterStart); in skipToTopmost()
837 fIter.reset(stack.fDeque, static_cast<SkDeque::Iter::IterStart>(startLoc)); in reset()
DSkContourMeasure.cpp179 , fIter(SkPathPriv::Iterate(fPath).begin()) in Impl()
183 bool hasNextSegments() const { return fIter != SkPathPriv::Iterate(fPath).end(); } in hasNextSegments()
188 SkPathPriv::RangeIter fIter; member in SkContourMeasureIter::Impl
348 for (; fIter != end; ++fIter) { in buildSegments()
349 auto [verb, pts, w] = *fIter; in buildSegments()
DSkRegion.cpp1425 : fIter(rgn), fClip(clip), fDone(true) { in Cliperator()
1426 const SkIRect& r = fIter.rect(); in Cliperator()
1428 while (!fIter.done()) { in Cliperator()
1436 fIter.next(); in Cliperator()
1445 const SkIRect& r = fIter.rect(); in next()
1448 fIter.next(); in next()
1449 while (!fIter.done()) { in next()
1457 fIter.next(); in next()
DSkClipStack.h429 SkDeque::Iter fIter; variable
DSkPath.cpp1890 fIter = iterate.begin(); in setPath()
1895 if (!(fIter != fEnd)) { in next()
1898 auto [verb, iterPts, weights] = *fIter; in next()
1912 ++fIter; in next()
/external/skia/src/gpu/tessellate/
DStrokeIterator.h37 fIter = it.begin(); in StrokeIterator()
70 for (; fIter != fEnd; ++fIter) { in next()
72 auto [verb, pts, w] = *fIter; in next()
117 ++fIter; in next()
346 SkPathPriv::RangeIter fIter; variable
/external/skia/src/gpu/ganesh/ops/
DLatticeOp.cpp168 patch.fIter = std::move(iter); in NonAALatticeOp()
242 numRects += fPatches[i].fIter->numRectsToDraw(); in onPrepareDraws()
268 patch.fIter->mapDstScaleTranslate(patch.fViewMatrix); in onPrepareDraws()
278 while (patch.fIter->next(&srcR, &dstR)) { in onPrepareDraws()
378 std::unique_ptr<SkLatticeIter> fIter; member
/external/skia/include/core/
DSkPathMeasure.h81 SkContourMeasureIter fIter;
DSkPath.h1646 return (fIter != fEnd) ? static_cast<Verb>(std::get<0>(*fIter)) : kDone_Verb; in peek()
1661 RangeIter fIter;
DSkRegion.h548 Iterator fIter;
/external/skia/tools/viewer/
DVariableWidthStrokerSlide.cpp327 explicit PathVerbMeasure(const SkPath& path) : fPath(path), fIter(path, false) { nextVerb(); } in PathVerbMeasure()
340 SkPath::Iter fIter; member in __anon0fc59e400111::PathVerbMeasure
351 SkPath::Verb verb = fIter.next(pts); in nextVerb()
358 verb = fIter.next(pts); in nextVerb()
374 fCurrVerb.conicTo(pts[1], pts[2], fIter.conicWeight()); in nextVerb()