Home | History | Annotate | Download | only in i18n

Lines Matching defs:shift

481 * Initializing shift tables, with the default values.
482 * If a corresponding default value is 0, the shift table is not set.
483 * @param shift table for forwards shift
484 * @param backshift table for backwards shift
492 inline void setShiftTable(int16_t shift[], int16_t backshift[],
498 // estimate the value to shift. to do that we estimate the smallest
504 shift[count] = defaultforward;
510 shift[hash(cetable[count])] = temp > 1 ? temp : 1;
512 shift[hash(cetable[cesize])] = 1;
513 // for ignorables we just shift by one. see test examples.
514 shift[hash(0)] = 1;
533 * versions of the string. Since the Boyer-Moore shift calculations shifts by
535 * offset, the shift value can not be too large in case we miss some
536 * characters. To choose a right shift size, we estimate the NFC form of the
537 * and use its size as a shift guide. The NFC form should be the small
539 * shift size. Hence the calculation for minlength.
545 * they match PA and EA. Hence the default shift values
548 * for the default shift values and the backwards search will take the prefix
567 setShiftTable(pattern->shift, pattern->backShift, pattern->CE,
731 * shift by 1 to capture contractions, normalization etc.
748 int32_t shift = pattern->shift[hash(ce)];
752 if (adjust > 1 && shift >= adjust) {
753 shift -= adjust - 1;
755 textoffset += shift;
767 // * next character is a accent: shift to the next base character
1963 * shift by 1 to capture contractions, normalization etc.
1989 int32_t shift = strsrch->pattern.backShift[hash(ce)];
1994 if (adjust > 1 && shift > adjust) {
1995 shift -= adjust - 1;
1997 textoffset -= shift;
3385 UBool shift;
3403 shift = ucol_getAttribute(strsrch->collator, UCOL_ALTERNATE_HANDLING,
3405 if (strsrch->toShift != shift) {
3406 strsrch->toShift = shift;