Home | History | Annotate | Download | only in common

Lines Matching refs:wordLength

247     int32_t wordLength;
256 wordLength = 0;
263 wordLength = words[wordsFound % THAI_LOOKAHEAD].acceptMarked(text);
299 wordLength = words[wordsFound % THAI_LOOKAHEAD].acceptMarked(text);
308 if ((int32_t)utext_getNativeIndex(text) < rangeEnd && wordLength < THAI_ROOT_COMBINE_THRESHOLD) {
313 && (wordLength == 0
317 int32_t remaining = rangeEnd - (current+wordLength);
336 utext_setNativeIndex(text, current + wordLength + chars);
345 if (wordLength <= 0) {
350 wordLength += chars;
354 utext_setNativeIndex(text, current+wordLength);
362 wordLength += (int32_t)utext_getNativeIndex(text) - currPos;
369 if ((int32_t)utext_getNativeIndex(text) < rangeEnd && wordLength > 0) {
377 wordLength += 1; // Add PAIYANNOI to word
390 wordLength += 1; // Add MAIYAMOK to word
399 utext_setNativeIndex(text, current+wordLength);
404 if (wordLength > 0) {
405 foundBreaks.push((current+wordLength), status);
479 int32_t wordLength;
488 wordLength = 0;
495 wordLength = words[wordsFound%KHMER_LOOKAHEAD].acceptMarked(text);
532 wordLength = words[wordsFound % KHMER_LOOKAHEAD].acceptMarked(text);
541 if ((int32_t)utext_getNativeIndex(text) < rangeEnd && wordLength < KHMER_ROOT_COMBINE_THRESHOLD) {
546 && (wordLength == 0
550 int32_t remaining = rangeEnd - (current+wordLength);
565 utext_setNativeIndex(text, current+wordLength+chars);
574 if (wordLength <= 0) {
579 wordLength += chars;
583 utext_setNativeIndex(text, current+wordLength);
591 wordLength += (int32_t)utext_getNativeIndex(text) - currPos;
598 // if ((int32_t)utext_getNativeIndex(text) < rangeEnd && wordLength > 0) {
606 // wordLength += 1; // Add PAIYANNOI to word
619 // wordLength += 1; // Add MAIYAMOK to word
628 // utext_setNativeIndex(text, current+wordLength);
633 if (wordLength > 0) {
634 foundBreaks.push((current+wordLength), status);
686 static inline uint32_t getKatakanaCost(int wordLength){
690 return (wordLength > kMaxKatakanaLength) ? 8192 : katakanaCost[wordLength];