• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/ICU-531.30/icuSources/i18n/

Lines Matching refs:collator

147     // note for tertiary we can't use the collator->tertiaryMask, that
298 coleiter = ucol_openElements(strsrch->collator, pattern->text,
370 coleiter = ucol_openElements(strsrch->collator, pattern->text,
782 * @param collator collation sata
789 inline int32_t getNextSafeOffset(const UCollator *collator,
795 while (result != textlength && ucol_unsafeCP(text[result], collator)) {
840 int32_t safeoffset = getNextSafeOffset(strsrch->collator,
1166 const UCollator *collator = strsrch->collator;
1177 if ((*end < textlength && ucol_unsafeCP(text[*end], collator)) ||
1179 && ucol_unsafeCP(text[*start + 1], collator))) {
1499 // run the collator iterator through this match
1518 * @param collator collation sata
1525 inline uint32_t getPreviousSafeOffset(const UCollator *collator,
1530 while (result != 0 && ucol_unsafeCP(text[result - 1], collator)) {
1578 const UCollator *collator = strsrch->collator;
1587 collator)) {
1588 safeoffset = getPreviousSafeOffset(collator, text, textoffset);
1816 const UCollator *collator = strsrch->collator;
1820 if ((*end < textlength && ucol_unsafeCP(text[*end], collator)) ||
1822 && ucol_unsafeCP(text[*start + 1], collator))) {
2013 const UCollator *collator = strsrch->collator;
2020 if (*start < textlength && ucol_unsafeCP(text[*start], collator)) {
2082 * @param collator
2200 // run the collator iterator through this match
2238 const UCollator *collator = strsrch->collator;
2248 ], collator)) {
2249 safeoffset = getNextSafeOffset(collator, text, textoffset,
2453 const UCollator *collator = strsrch->collator;
2460 if (*start < textlength && ucol_unsafeCP(text[*start], collator)) {
2608 UCollator *collator = ucol_open(locale, status);
2612 collator, breakiter, status);
2615 if (collator) {
2616 ucol_close(collator);
2634 const UCollator *collator,
2647 if (pattern == NULL || text == NULL || collator == NULL) {
2653 if(ucol_getAttribute(collator, UCOL_NUMERIC_COLLATION, status) == UCOL_ON) {
2682 result->collator = collator;
2683 result->strength = ucol_getStrength(collator);
2686 ucol_getAttribute(collator, UCOL_ALTERNATE_HANDLING, status) ==
2688 result->variableTop = ucol_getVariableTop(collator, status);
2714 result->search->internalBreakIter = ubrk_open(UBRK_CHARACTER, ucol_getLocaleByType(result->collator, ULOC_VALID_LOCALE, status), text, textlength, status);
2724 result->textIter = ucol_openElements(collator, text,
2767 if (strsrch->ownCollator && strsrch->collator) {
2768 ucol_close((UCollator *)strsrch->collator);
3010 const UCollator *collator,
3014 if (collator == NULL) {
3025 if (strsrch->ownCollator && (strsrch->collator != collator)) {
3026 ucol_close((UCollator *)strsrch->collator);
3029 strsrch->collator = collator;
3030 strsrch->strength = ucol_getStrength(collator);
3034 strsrch->search->internalBreakIter = ubrk_open(UBRK_CHARACTER, ucol_getLocaleByType(collator, ULOC_VALID_LOCALE, status),
3039 ucol_getAttribute(collator, UCOL_ALTERNATE_HANDLING, status) ==
3042 strsrch->variableTop = ucol_getVariableTop(collator, status);
3043 strsrch->textIter = ucol_openElements(collator,
3048 collator, strsrch->pattern.text, strsrch->pattern.textLength, status);
3049 // initialize() _after_ setting the iterators for the new collator.
3066 return (UCollator *)strsrch->collator;
3386 string search, hence all attributes in the collator should
3397 UCollationStrength newStrength = ucol_getStrength(strsrch->collator);
3403 strsrch->strength = ucol_getStrength(strsrch->collator);
3411 shift = ucol_getAttribute(strsrch->collator, UCOL_ALTERNATE_HANDLING,
3419 varTop = ucol_getVariableTop(strsrch->collator, &status);
3870 // fields that are for strengths below that of the collator are set to 0. If this makes the int64_t
3871 // CE weight 0 (as for a combining diacritic with secondary weight when the collator strentgh is primary),