Home
last modified time | relevance | path

Searched refs:rangeEnd (Results 1 – 25 of 59) sorted by relevance

123

/external/icu/icu4c/source/common/
Ddictbe.cpp59 int32_t rangeEnd; in findBreaks() local
79 rangeEnd = utext_getNativeIndex(text); in findBreaks()
87 rangeEnd = current; in findBreaks()
90 result = divideUpDictionaryRange(text, rangeStart, rangeEnd, foundBreaks); in findBreaks()
133 int32_t candidates( UText *text, DictionaryMatcher *dict, int32_t rangeEnd );
154 int32_t PossibleWord::candidates( UText *text, DictionaryMatcher *dict, int32_t rangeEnd ) { in candidates() argument
159 …count = dict->matches(text, rangeEnd-start, UPRV_LENGTHOF(cuLengths), cuLengths, cpLengths, NULL, … in candidates()
248 int32_t rangeEnd, in divideUpDictionaryRange() argument
252 if (utext_getNativeIndex(text) >= rangeEnd) { in divideUpDictionaryRange()
267 while (U_SUCCESS(status) && (current = (int32_t)utext_getNativeIndex(text)) < rangeEnd) { in divideUpDictionaryRange()
[all …]
Ddictbe.h128 int32_t rangeEnd,
185 int32_t rangeEnd,
241 int32_t rangeEnd,
297 int32_t rangeEnd,
353 int32_t rangeEnd,
417 int32_t rangeEnd,
/external/icu/android_icu4j/src/main/java/android/icu/text/
DThaiBreakEngine.java102 public int divideUpDictionaryRange(CharacterIterator fIter, int rangeStart, int rangeEnd, in divideUpDictionaryRange() argument
105 if ((rangeEnd - rangeStart) < THAI_MIN_WORD_SPAN) { in divideUpDictionaryRange()
118 while ((current = fIter.getIndex()) < rangeEnd) { in divideUpDictionaryRange()
122 … int candidates = words[wordsFound%THAI_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd); in divideUpDictionaryRange()
133 if (fIter.getIndex() < rangeEnd) { in divideUpDictionaryRange()
137 … if (words[(wordsFound+1)%THAI_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd) > 0) { in divideUpDictionaryRange()
145 if (fIter.getIndex() >= rangeEnd) { in divideUpDictionaryRange()
152 … if (words[(wordsFound+2)%THAI_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd) > 0) { in divideUpDictionaryRange()
171 if (fIter.getIndex() < rangeEnd && wordLength < THAI_ROOT_COMBINE_THRESHOLD) { in divideUpDictionaryRange()
175 … if (words[wordsFound%THAI_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd) <= 0 && in divideUpDictionaryRange()
[all …]
DLaoBreakEngine.java90 public int divideUpDictionaryRange(CharacterIterator fIter, int rangeStart, int rangeEnd, in divideUpDictionaryRange() argument
94 if ((rangeEnd - rangeStart) < LAO_MIN_WORD) { in divideUpDictionaryRange()
107 while ((current = fIter.getIndex()) < rangeEnd) { in divideUpDictionaryRange()
111 … int candidates = words[wordsFound%LAO_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd); in divideUpDictionaryRange()
123 if (fIter.getIndex() < rangeEnd) { in divideUpDictionaryRange()
126 … if (words[(wordsFound+1)%LAO_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd) > 0) { in divideUpDictionaryRange()
134 if (fIter.getIndex() >= rangeEnd) { in divideUpDictionaryRange()
141 … if (words[(wordsFound+2)%LAO_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd) > 0) { in divideUpDictionaryRange()
159 if (fIter.getIndex() < rangeEnd && wordLength < LAO_ROOT_COMBINE_THRESHOLD) { in divideUpDictionaryRange()
163 if (words[wordsFound%LAO_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd) <= 0 && in divideUpDictionaryRange()
[all …]
DBurmeseBreakEngine.java87 public int divideUpDictionaryRange(CharacterIterator fIter, int rangeStart, int rangeEnd, in divideUpDictionaryRange() argument
91 if ((rangeEnd - rangeStart) < BURMESE_MIN_WORD) { in divideUpDictionaryRange()
104 while ((current = fIter.getIndex()) < rangeEnd) { in divideUpDictionaryRange()
108 … int candidates = words[wordsFound%BURMESE_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd); in divideUpDictionaryRange()
120 if (fIter.getIndex() < rangeEnd) { in divideUpDictionaryRange()
123 … if (words[(wordsFound+1)%BURMESE_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd) > 0) { in divideUpDictionaryRange()
131 if (fIter.getIndex() >= rangeEnd) { in divideUpDictionaryRange()
138 … if (words[(wordsFound+2)%BURMESE_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd) > 0) { in divideUpDictionaryRange()
156 if (fIter.getIndex() < rangeEnd && wordLength < BURMESE_ROOT_COMBINE_THRESHOLD) { in divideUpDictionaryRange()
160 … if (words[wordsFound%BURMESE_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd) <= 0 && in divideUpDictionaryRange()
[all …]
DKhmerBreakEngine.java91 public int divideUpDictionaryRange(CharacterIterator fIter, int rangeStart, int rangeEnd, in divideUpDictionaryRange() argument
94 if ((rangeEnd - rangeStart) < KHMER_MIN_WORD_SPAN) { in divideUpDictionaryRange()
108 while ((current = fIter.getIndex()) < rangeEnd) { in divideUpDictionaryRange()
112 … int candidates = words[wordsFound % KHMER_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd); in divideUpDictionaryRange()
124 if (fIter.getIndex() < rangeEnd) { in divideUpDictionaryRange()
127 … if (words[(wordsFound+1)%KHMER_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd) > 0) { in divideUpDictionaryRange()
135 if (fIter.getIndex() >= rangeEnd) { in divideUpDictionaryRange()
142 … if (words[(wordsFound+2)%KHMER_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd) > 0) { in divideUpDictionaryRange()
160 if (fIter.getIndex() < rangeEnd && wordLength < KHMER_ROOT_COMBINE_THRESHOLD) { in divideUpDictionaryRange()
164 … if (words[wordsFound%KHMER_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd) <= 0 && in divideUpDictionaryRange()
[all …]
DDictionaryBreakEngine.java40 public int candidates(CharacterIterator fIter, DictionaryMatcher dict, int rangeEnd) { in candidates() argument
44 prefix = dict.matches(fIter, rangeEnd - start, lengths, count, lengths.length); in candidates()
183 int rangeEnd; in findBreaks() local
193 rangeEnd = start + 1; in findBreaks()
200 rangeEnd = current; in findBreaks()
203 result = divideUpDictionaryRange(text, rangeStart, rangeEnd, foundBreaks); in findBreaks()
226 int rangeEnd, in divideUpDictionaryRange() argument
DPluralRanges.java200 public void add(StandardPlural rangeStart, StandardPlural rangeEnd, in add() argument
208 if (rangeEnd == null) { in add()
213 explicit[rangeEnd.ordinal()] = true; in add()
214 matrix.setIfNew(rs, rangeEnd, result); in add()
217 } else if (rangeEnd == null) { in add()
224 explicit[rangeEnd.ordinal()] = true; in add()
225 matrix.setIfNew(rangeStart, rangeEnd, result); in add()
DRBBIDataWrapper.java449 int rangeEnd = 0; in dumpCharCategories() local
469 rangeEnd = char32; in dumpCharCategories()
478 if (rangeEnd != rangeStart) { in dumpCharCategories()
479 catStrings[lastCat] += "-" + Integer.toHexString(rangeEnd); in dumpCharCategories()
483 rangeStart = rangeEnd = char32; in dumpCharCategories()
487 if (rangeEnd != rangeStart) { in dumpCharCategories()
488 catStrings[lastCat] += "-" + Integer.toHexString(rangeEnd); in dumpCharCategories()
DRuleBasedBreakIterator.java437 int rangeEnd = endPos; in checkDictionary() local
460 rangeEnd = fText.getIndex(); in checkDictionary()
503 while((current = fText.getIndex()) < rangeEnd && (category & 0x4000) == 0) { in checkDictionary()
508 if (current >= rangeEnd) { in checkDictionary()
520 … foundBreakCount += lbe.findBreaks(fText, rangeStart, rangeEnd, false, fBreakType, breaks); in checkDictionary()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DBurmeseBreakEngine.java86 public int divideUpDictionaryRange(CharacterIterator fIter, int rangeStart, int rangeEnd, in divideUpDictionaryRange() argument
90 if ((rangeEnd - rangeStart) < BURMESE_MIN_WORD) { in divideUpDictionaryRange()
103 while ((current = fIter.getIndex()) < rangeEnd) { in divideUpDictionaryRange()
107 … int candidates = words[wordsFound%BURMESE_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd); in divideUpDictionaryRange()
119 if (fIter.getIndex() < rangeEnd) { in divideUpDictionaryRange()
122 … if (words[(wordsFound+1)%BURMESE_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd) > 0) { in divideUpDictionaryRange()
130 if (fIter.getIndex() >= rangeEnd) { in divideUpDictionaryRange()
137 … if (words[(wordsFound+2)%BURMESE_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd) > 0) { in divideUpDictionaryRange()
155 if (fIter.getIndex() < rangeEnd && wordLength < BURMESE_ROOT_COMBINE_THRESHOLD) { in divideUpDictionaryRange()
159 … if (words[wordsFound%BURMESE_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd) <= 0 && in divideUpDictionaryRange()
[all …]
DLaoBreakEngine.java89 public int divideUpDictionaryRange(CharacterIterator fIter, int rangeStart, int rangeEnd, in divideUpDictionaryRange() argument
93 if ((rangeEnd - rangeStart) < LAO_MIN_WORD) { in divideUpDictionaryRange()
106 while ((current = fIter.getIndex()) < rangeEnd) { in divideUpDictionaryRange()
110 … int candidates = words[wordsFound%LAO_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd); in divideUpDictionaryRange()
122 if (fIter.getIndex() < rangeEnd) { in divideUpDictionaryRange()
125 … if (words[(wordsFound+1)%LAO_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd) > 0) { in divideUpDictionaryRange()
133 if (fIter.getIndex() >= rangeEnd) { in divideUpDictionaryRange()
140 … if (words[(wordsFound+2)%LAO_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd) > 0) { in divideUpDictionaryRange()
158 if (fIter.getIndex() < rangeEnd && wordLength < LAO_ROOT_COMBINE_THRESHOLD) { in divideUpDictionaryRange()
162 if (words[wordsFound%LAO_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd) <= 0 && in divideUpDictionaryRange()
[all …]
DKhmerBreakEngine.java90 public int divideUpDictionaryRange(CharacterIterator fIter, int rangeStart, int rangeEnd, in divideUpDictionaryRange() argument
93 if ((rangeEnd - rangeStart) < KHMER_MIN_WORD_SPAN) { in divideUpDictionaryRange()
107 while ((current = fIter.getIndex()) < rangeEnd) { in divideUpDictionaryRange()
111 … int candidates = words[wordsFound % KHMER_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd); in divideUpDictionaryRange()
123 if (fIter.getIndex() < rangeEnd) { in divideUpDictionaryRange()
126 … if (words[(wordsFound+1)%KHMER_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd) > 0) { in divideUpDictionaryRange()
134 if (fIter.getIndex() >= rangeEnd) { in divideUpDictionaryRange()
141 … if (words[(wordsFound+2)%KHMER_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd) > 0) { in divideUpDictionaryRange()
159 if (fIter.getIndex() < rangeEnd && wordLength < KHMER_ROOT_COMBINE_THRESHOLD) { in divideUpDictionaryRange()
163 … if (words[wordsFound%KHMER_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd) <= 0 && in divideUpDictionaryRange()
[all …]
DThaiBreakEngine.java101 public int divideUpDictionaryRange(CharacterIterator fIter, int rangeStart, int rangeEnd, in divideUpDictionaryRange() argument
104 if ((rangeEnd - rangeStart) < THAI_MIN_WORD_SPAN) { in divideUpDictionaryRange()
117 while ((current = fIter.getIndex()) < rangeEnd) { in divideUpDictionaryRange()
121 … int candidates = words[wordsFound%THAI_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd); in divideUpDictionaryRange()
132 if (fIter.getIndex() < rangeEnd) { in divideUpDictionaryRange()
136 … if (words[(wordsFound+1)%THAI_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd) > 0) { in divideUpDictionaryRange()
144 if (fIter.getIndex() >= rangeEnd) { in divideUpDictionaryRange()
151 … if (words[(wordsFound+2)%THAI_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd) > 0) { in divideUpDictionaryRange()
170 if (fIter.getIndex() < rangeEnd && wordLength < THAI_ROOT_COMBINE_THRESHOLD) { in divideUpDictionaryRange()
174 … if (words[wordsFound%THAI_LOOKAHEAD].candidates(fIter, fDictionary, rangeEnd) <= 0 && in divideUpDictionaryRange()
[all …]
DDictionaryBreakEngine.java39 public int candidates(CharacterIterator fIter, DictionaryMatcher dict, int rangeEnd) { in candidates() argument
43 prefix = dict.matches(fIter, rangeEnd - start, lengths, count, lengths.length); in candidates()
182 int rangeEnd; in findBreaks() local
192 rangeEnd = start + 1; in findBreaks()
199 rangeEnd = current; in findBreaks()
202 result = divideUpDictionaryRange(text, rangeStart, rangeEnd, foundBreaks); in findBreaks()
225 int rangeEnd, in divideUpDictionaryRange() argument
DPluralRanges.java198 public void add(StandardPlural rangeStart, StandardPlural rangeEnd, in add() argument
206 if (rangeEnd == null) { in add()
211 explicit[rangeEnd.ordinal()] = true; in add()
212 matrix.setIfNew(rs, rangeEnd, result); in add()
215 } else if (rangeEnd == null) { in add()
222 explicit[rangeEnd.ordinal()] = true; in add()
223 matrix.setIfNew(rangeStart, rangeEnd, result); in add()
DRBBIDataWrapper.java448 int rangeEnd = 0; in dumpCharCategories() local
468 rangeEnd = char32; in dumpCharCategories()
477 if (rangeEnd != rangeStart) { in dumpCharCategories()
478 catStrings[lastCat] += "-" + Integer.toHexString(rangeEnd); in dumpCharCategories()
482 rangeStart = rangeEnd = char32; in dumpCharCategories()
486 if (rangeEnd != rangeStart) { in dumpCharCategories()
487 catStrings[lastCat] += "-" + Integer.toHexString(rangeEnd); in dumpCharCategories()
DRuleBasedBreakIterator.java447 int rangeEnd = endPos; in checkDictionary() local
470 rangeEnd = fText.getIndex(); in checkDictionary()
513 while((current = fText.getIndex()) < rangeEnd && (category & 0x4000) == 0) { in checkDictionary()
518 if (current >= rangeEnd) { in checkDictionary()
530 … foundBreakCount += lbe.findBreaks(fText, rangeStart, rangeEnd, false, fBreakType, breaks); in checkDictionary()
/external/icu/icu4c/source/test/cintltst/
Dusettest.c259 int32_t rangeStart = -1, rangeEnd = -1, length; in expectContainment() local
311 if (c == rangeEnd+1) { in expectContainment()
312 rangeEnd = c; in expectContainment()
315 if (uset_containsRange(set, rangeStart, rangeEnd) == isIn) { in expectContainment()
318 rangeStart, rangeEnd); in expectContainment()
322 rangeStart, rangeEnd); in expectContainment()
325 rangeStart = rangeEnd = c; in expectContainment()
333 if (uset_containsRange(set, rangeStart, rangeEnd) == isIn) { in expectContainment()
336 rangeStart, rangeEnd); in expectContainment()
340 rangeStart, rangeEnd); in expectContainment()
Dsprpdata.c56 uint32_t rangeStart=0,rangeEnd =0; in strprepProfileLineFn() local
63 u_parseCodePointRange(fields[0][0], &rangeStart,&rangeEnd, pErrorCode); in strprepProfileLineFn()
66 compareFlagsForRange(data, rangeStart,rangeEnd,USPREP_UNASSIGNED); in strprepProfileLineFn()
70 u_parseCodePointRange(fields[0][0], &rangeStart,&rangeEnd, pErrorCode); in strprepProfileLineFn()
73 compareFlagsForRange(data, rangeStart,rangeEnd,USPREP_PROHIBITED); in strprepProfileLineFn()
/external/skia/src/pathops/
DSkIntersections.cpp10 int SkIntersections::closestTo(double rangeStart, double rangeEnd, const SkDPoint& testPt, in closestTo() argument
15 if (!between(rangeStart, fT[0][index], rangeEnd)) { in closestTo()
128 int SkIntersections::mostOutside(double rangeStart, double rangeEnd, const SkDPoint& origin) const { in mostOutside() argument
131 if (!between(rangeStart, fT[0][index], rangeEnd)) { in mostOutside()
/external/icu/icu4c/source/test/intltest/
Dtestidn.cpp152 uint32_t rangeStart=0,rangeEnd =0; in strprepProfileLineFn() local
171 u_parseCodePointRange(s, &rangeStart,&rangeEnd, pErrorCode); in strprepProfileLineFn()
174 compareFlagsForRange(rangeStart,rangeEnd,USPREP_UNASSIGNED); in strprepProfileLineFn()
178 u_parseCodePointRange(s, &rangeStart,&rangeEnd, pErrorCode); in strprepProfileLineFn()
181 compareFlagsForRange(rangeStart,rangeEnd,USPREP_PROHIBITED); in strprepProfileLineFn()
/external/icu/icu4c/source/tools/gensprep/
Dgensprep.c348 uint32_t rangeStart=0,rangeEnd =0; in strprepProfileLineFn() local
377 u_parseCodePointRange(s, &rangeStart,&rangeEnd, pErrorCode); in strprepProfileLineFn()
384 storeRange(rangeStart,rangeEnd,USPREP_UNASSIGNED, pErrorCode); in strprepProfileLineFn()
388 u_parseCodePointRange(s, &rangeStart,&rangeEnd, pErrorCode); in strprepProfileLineFn()
395 storeRange(rangeStart,rangeEnd,USPREP_PROHIBITED, pErrorCode); in strprepProfileLineFn()
/external/icu/icu4c/source/i18n/
Duspoof_wsconf.cpp321 UChar32 rangeEnd = ignoreSet.getRangeEnd(rn); in buildWSConfusableData() local
322 utrie2_setRange32(anyCaseTrie, rangeStart, rangeEnd, 1, TRUE, &status); in buildWSConfusableData()
323 utrie2_setRange32(lowerCaseTrie, rangeStart, rangeEnd, 1, TRUE, &status); in buildWSConfusableData()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DTrie2.java887 endOfRange = rangeEnd(nextStart, limitCP, val); in next()
898 endOfRange = rangeEnd(endOfRange+1, limitCP, val); in next()
995 int rangeEnd(int start, int limitp, int val) { in rangeEnd() method in Trie2

123