Lines Matching defs:rangeEnd
55 int32_t rangeEnd;
64 rangeEnd = start + 1;
72 rangeEnd = current;
75 result = divideUpDictionaryRange(text, rangeStart, rangeEnd, foundBreaks);
116 int candidates( UText *text, DictionaryMatcher *dict, int32_t rangeEnd );
142 PossibleWord::candidates( UText *text, DictionaryMatcher *dict, int32_t rangeEnd ) {
147 prefix = dict->matches(text, rangeEnd-start, lengths, count, sizeof(lengths)/sizeof(lengths[0]));
240 int32_t rangeEnd,
242 if ((rangeEnd - rangeStart) < THAI_MIN_WORD_SPAN) {
255 while (U_SUCCESS(status) && (current = (int32_t)utext_getNativeIndex(text)) < rangeEnd) {
259 int candidates = words[wordsFound%THAI_LOOKAHEAD].candidates(text, fDictionary, rangeEnd);
269 if ((int32_t)utext_getNativeIndex(text) >= rangeEnd) {
274 if (words[(wordsFound + 1) % THAI_LOOKAHEAD].candidates(text, fDictionary, rangeEnd) > 0) {
282 if ((int32_t)utext_getNativeIndex(text) >= rangeEnd) {
289 if (words[(wordsFound + 2) % THAI_LOOKAHEAD].candidates(text, fDictionary, rangeEnd)) {
308 if ((int32_t)utext_getNativeIndex(text) < rangeEnd && wordLength < THAI_ROOT_COMBINE_THRESHOLD) {
312 if (words[wordsFound % THAI_LOOKAHEAD].candidates(text, fDictionary, rangeEnd) <= 0
317 int32_t remaining = rangeEnd - (current+wordLength);
335 int candidates = words[(wordsFound + 1) % THAI_LOOKAHEAD].candidates(text, fDictionary, rangeEnd);
360 while ((currPos = (int32_t)utext_getNativeIndex(text)) < rangeEnd && fMarkSet.contains(utext_current32(text))) {
369 if ((int32_t)utext_getNativeIndex(text) < rangeEnd && wordLength > 0) {
370 if (words[wordsFound%THAI_LOOKAHEAD].candidates(text, fDictionary, rangeEnd) <= 0
410 if (foundBreaks.peeki() >= rangeEnd) {
472 int32_t rangeEnd,
474 if ((rangeEnd - rangeStart) < KHMER_MIN_WORD_SPAN) {
487 while (U_SUCCESS(status) && (current = (int32_t)utext_getNativeIndex(text)) < rangeEnd) {
491 int candidates = words[wordsFound%KHMER_LOOKAHEAD].candidates(text, fDictionary, rangeEnd);
502 if ((int32_t)utext_getNativeIndex(text) >= rangeEnd) {
507 if (words[(wordsFound + 1) % KHMER_LOOKAHEAD].candidates(text, fDictionary, rangeEnd) > 0) {
515 if ((int32_t)utext_getNativeIndex(text) >= rangeEnd) {
522 if (words[(wordsFound + 2) % KHMER_LOOKAHEAD].candidates(text, fDictionary, rangeEnd)) {
541 if ((int32_t)utext_getNativeIndex(text) < rangeEnd && wordLength < KHMER_ROOT_COMBINE_THRESHOLD) {
545 if (words[wordsFound % KHMER_LOOKAHEAD].candidates(text, fDictionary, rangeEnd) <= 0
550 int32_t remaining = rangeEnd - (current+wordLength);
564 int candidates = words[(wordsFound + 1) % KHMER_LOOKAHEAD].candidates(text, fDictionary, rangeEnd);
589 while ((currPos = (int32_t)utext_getNativeIndex(text)) < rangeEnd && fMarkSet.contains(utext_current32(text))) {
598 // if ((int32_t)utext_getNativeIndex(text) < rangeEnd && wordLength > 0) {
599 // if (words[wordsFound%KHMER_LOOKAHEAD].candidates(text, fDictionary, rangeEnd) <= 0
639 if (foundBreaks.peeki() >= rangeEnd) {
747 * @param rangeEnd The end of the range of dictionary characters
754 int32_t rangeEnd,
756 if (rangeStart >= rangeEnd) {
761 size_t inputLength = rangeEnd - rangeStart;
769 utext_extract(text, rangeStart, rangeEnd, charString.elems(), inputLength, &status);