Home | History | Annotate | Download | only in i18n

Lines Matching defs:shift

468 * Initializing shift tables, with the default values.
469 * If a corresponding default value is 0, the shift table is not set.
470 * @param shift table for forwards shift
471 * @param backshift table for backwards shift
479 inline void setShiftTable(int16_t shift[], int16_t backshift[],
485 // estimate the value to shift. to do that we estimate the smallest
491 shift[count] = defaultforward;
497 shift[hash(cetable[count])] = temp > 1 ? temp : 1;
499 shift[hash(cetable[cesize])] = 1;
500 // for ignorables we just shift by one. see test examples.
501 shift[hash(0)] = 1;
520 * versions of the string. Since the Boyer-Moore shift calculations shifts by
522 * offset, the shift value can not be too large in case we miss some
523 * characters. To choose a right shift size, we estimate the NFC form of the
524 * and use its size as a shift guide. The NFC form should be the small
526 * shift size. Hence the calculation for minlength.
532 * they match PA and EA. Hence the default shift values
535 * for the default shift values and the backwards search will take the prefix
554 setShiftTable(pattern->shift, pattern->backShift, pattern->CE,
718 * shift by 1 to capture contractions, normalization etc.
735 int32_t shift = pattern->shift[hash(ce)];
739 if (adjust > 1 && shift >= adjust) {
740 shift -= adjust - 1;
742 textoffset += shift;
754 // * next character is a accent: shift to the next base character
1950 * shift by 1 to capture contractions, normalization etc.
1976 int32_t shift = strsrch->pattern.backShift[hash(ce)];
1981 if (adjust > 1 && shift > adjust) {
1982 shift -= adjust - 1;
1984 textoffset -= shift;
3393 UBool shift;
3411 shift = ucol_getAttribute(strsrch->collator, UCOL_ALTERNATE_HANDLING,
3413 if (strsrch->toShift != shift) {
3414 strsrch->toShift = shift;