Lines Matching refs:ce
93 inline int hash(uint32_t ce) in hash() argument
99 return UCOL_PRIMARYORDER(ce) % MAX_TABLE_SIZE_; in hash()
329 int32_t ce; in initializePatternCETable() local
331 while ((ce = ucol_next(coleiter, status)) != UCOL_NULLORDER && in initializePatternCETable()
333 uint32_t newce = getCE(strsrch, ce); in initializePatternCETable()
348 result += (uint16_t)(ucol_getMaxExpansion(coleiter, ce) - 1); in initializePatternCETable()
645 int32_t ce = getCE(strsrch, ucol_next(coleiter, &status)); in isBreakUnit() local
646 if (ce == UCOL_IGNORABLE) { in isBreakUnit()
650 if (U_FAILURE(status) || ce != strsrch->pattern.CE[count]) { in isBreakUnit()
743 int32_t ce, in shiftForward() argument
747 if (ce != UCOL_NULLORDER) { in shiftForward()
748 int32_t shift = pattern->shift[hash(ce)]; in shiftForward()
887 uint32_t ce = UCOL_IGNORABLE; in checkExtraMatchAccents() local
888 while (U_SUCCESS(*status) && ce != firstce && ce != (uint32_t)UCOL_NULLORDER) { in checkExtraMatchAccents()
890 if (ce != firstce && ce != UCOL_IGNORABLE) { in checkExtraMatchAccents()
893 ce = ucol_next(coleiter, status); in checkExtraMatchAccents()
941 int32_t ce = getCE(strsrch, ucol_next(coleiter, &status)); in hasAccentsBeforeMatch() local
945 while (ce != firstce) { in hasAccentsBeforeMatch()
946 if (ce != UCOL_IGNORABLE) { in hasAccentsBeforeMatch()
949 ce = getCE(strsrch, ucol_next(coleiter, &status)); in hasAccentsBeforeMatch()
950 if (U_FAILURE(status) || ce == UCOL_NULLORDER) { in hasAccentsBeforeMatch()
982 ce = ucol_previous(coleiter, &status); in hasAccentsBeforeMatch()
984 (ce != UCOL_NULLORDER && ce != UCOL_IGNORABLE)) { in hasAccentsBeforeMatch()
1023 int32_t ce; in hasAccentsAfterMatch() local
1025 while ((ce = getCE(strsrch, ucol_next(coleiter, &status))) != firstce) { in hasAccentsAfterMatch()
1026 if (U_FAILURE(status) || ce == UCOL_NULLORDER) { in hasAccentsAfterMatch()
1043 ce = ucol_next(coleiter, &status); in hasAccentsAfterMatch()
1047 if (ce != UCOL_NULLORDER && ce != UCOL_IGNORABLE) { in hasAccentsAfterMatch()
1048 ce = getCE(strsrch, ce); in hasAccentsAfterMatch()
1050 if (ce != UCOL_NULLORDER && ce != UCOL_IGNORABLE) { in hasAccentsAfterMatch()
1219 int32_t ce = getCE(strsrch, ucol_next(coleiter, status)); in checkNextExactContractionMatch() local
1220 if (ce == UCOL_IGNORABLE) { in checkNextExactContractionMatch()
1227 if (U_FAILURE(*status) || ce != patternce[count]) { in checkNextExactContractionMatch()
1422 int32_t ce = getCE(strsrch, ucol_next(coleiter, &status)); in checkCollationMatch() local
1423 if (ce == UCOL_IGNORABLE) { in checkCollationMatch()
1426 if (U_FAILURE(status) || ce != *patternce) { in checkCollationMatch()
1618 int32_t *ce = strsrch->pattern.CE; in doNextCanonicalSuffixMatch() local
1646 if (textce != UCOL_IGNORABLE && textce != ce[ceindex]) { in doNextCanonicalSuffixMatch()
1673 if (textce == ce[ceindex]) { in doNextCanonicalSuffixMatch()
1863 int32_t ce = getCE(strsrch, ucol_next(coleiter, status)); in checkNextCanonicalContractionMatch() local
1866 if (ce == UCOL_IGNORABLE) { in checkNextCanonicalContractionMatch()
1874 if (count == 0 && ce != patternce[0]) { in checkNextCanonicalContractionMatch()
1880 ce = getCE(strsrch, ucol_next(coleiter, status)); in checkNextCanonicalContractionMatch()
1881 while (U_SUCCESS(*status) && ce != expected && in checkNextCanonicalContractionMatch()
1882 ce != UCOL_NULLORDER && in checkNextCanonicalContractionMatch()
1884 ce = getCE(strsrch, ucol_next(coleiter, status)); in checkNextCanonicalContractionMatch()
1888 if (U_FAILURE(*status) || ce != patternce[count]) { in checkNextCanonicalContractionMatch()
1976 int32_t ce, in reverseShift() argument
1988 if (ce != UCOL_NULLORDER) { in reverseShift()
1989 int32_t shift = strsrch->pattern.backShift[hash(ce)]; in reverseShift()
2060 int32_t ce = getCE(strsrch, ucol_previous(coleiter, status)); in checkPreviousExactContractionMatch() local
2063 if (ce == UCOL_IGNORABLE) { in checkPreviousExactContractionMatch()
2071 if (U_FAILURE(*status) || ce != patternce[count - 1]) { in checkPreviousExactContractionMatch()
2281 int32_t *ce = strsrch->pattern.CE; in doPreviousCanonicalPrefixMatch() local
2310 if (textce != UCOL_IGNORABLE && textce != ce[ceindex]) { in doPreviousCanonicalPrefixMatch()
2337 if (textce == ce[ceindex]) { in doPreviousCanonicalPrefixMatch()
2500 int32_t ce = getCE(strsrch, ucol_previous(coleiter, status)); in checkPreviousCanonicalContractionMatch() local
2503 if (ce == UCOL_IGNORABLE) { in checkPreviousCanonicalContractionMatch()
2512 ce != patternce[patterncelength - 1]) { in checkPreviousCanonicalContractionMatch()
2518 ce = getCE(strsrch, ucol_previous(coleiter, status)); in checkPreviousCanonicalContractionMatch()
2519 while (U_SUCCESS(*status) && ce != expected && in checkPreviousCanonicalContractionMatch()
2520 ce != UCOL_NULLORDER && in checkPreviousCanonicalContractionMatch()
2522 ce = getCE(strsrch, ucol_previous(coleiter, status)); in checkPreviousCanonicalContractionMatch()
2526 if (U_FAILURE(*status) || ce != patternce[count - 1]) { in checkPreviousCanonicalContractionMatch()
3440 int64_t ce; member
3553 buf[i].ce = ucol_nextProcessed(ceIter, &buf[i].lowIndex, &buf[i].highIndex, &status); in get()
3592 buf[i].ce = ucol_previousProcessed(ceIter, &buf[i].lowIndex, &buf[i].highIndex, &status); in getPrevious()
3893 …UCompareCEsResult ceMatch = compareCE64s(targetCEI->ce, patCE, strsrch->search->elementComparisonT… in usearch_search()
3910 if (!found && ((targetCEI == NULL) || (targetCEI->ce != UCOL_PROCESSED_NULLORDER))) { in usearch_search()
3943 … if (nextCEI->lowIndex == nextCEI->highIndex && nextCEI->ce != UCOL_PROCESSED_NULLORDER) { in usearch_search()
3951 if ( nextCEI->ce == UCOL_PROCESSED_NULLORDER ) { in usearch_search()
3957 if ( (((nextCEI->ce) >> 32) & 0xFFFF0000UL) == 0 ) { in usearch_search()
3958 …UCompareCEsResult ceMatch = compareCE64s(nextCEI->ce, patCE, strsrch->search->elementComparisonTyp… in usearch_search()
4046 printf("%8x@%d ", ceb.get(ii)->ce, ceb.get(ii)->srcIndex); in usearch_search()
4175 …UCompareCEsResult ceMatch = compareCE64s(targetCEI->ce, patCE, strsrch->search->elementComparisonT… in usearch_searchBackwards()
4191 if (!found && ((targetCEI == NULL) || (targetCEI->ce != UCOL_PROCESSED_NULLORDER))) { in usearch_searchBackwards()
4240 … if (nextCEI->lowIndex == nextCEI->highIndex && nextCEI->ce != UCOL_PROCESSED_NULLORDER) { in usearch_searchBackwards()
4297 printf("%8x@%d ", ceb.get(ii)->ce, ceb.get(ii)->srcIndex); in usearch_searchBackwards()