Lines Matching refs:utf8
330 dict[k]->utf8 = (strcmp(dict[k]->cset, "UTF-8") == 0);
333 dict[k]->utf8 = dict[0]->utf8;
400 if (dict[k]->utf8) {
649 int hnj_hyphen_strnlen(const char * word, int n, int utf8)
655 for (j++; utf8 && (word[j] & 0xc0) == 0x80; j++);
660 int hnj_hyphen_lhmin(int utf8, const char *word, int word_size, char * hyphens,
668 if (rh && (hnj_hyphen_strnlen(word, j - (*pos)[j] + 1, utf8) +
669 hnj_hyphen_strnlen((*rep)[j], rh - (*rep)[j], utf8)) < lhmin) {
678 } while (utf8 && (word[j + 1] & 0xc0) == 0xc0);
682 int hnj_hyphen_rhmin(int utf8, const char *word, int word_size, char * hyphens,
691 if (rh && (hnj_hyphen_strnlen(word + j - (*pos)[j] + (*cut)[j] + 1, 100, utf8) +
692 hnj_hyphen_strnlen(rh + 1, strlen(rh + 1), utf8)) < rhmin) {
700 if (!utf8 || (word[j] & 0xc0) != 0xc0) i++;
968 if (!lend) hnj_hyphen_lhmin(dict->utf8, word, word_size, hyphens,
970 if (!rend) hnj_hyphen_rhmin(dict->utf8, word, word_size, hyphens,
1051 hnj_hyphen_lhmin(dict->utf8, word, word_size,
1053 hnj_hyphen_rhmin(dict->utf8, word, word_size,
1056 if (dict->utf8) return hnj_hyphen_norm(word, word_size, hyphens, rep, pos, cut);
1070 hnj_hyphen_lhmin(dict->utf8, word, word_size, hyphens,
1072 hnj_hyphen_rhmin(dict->utf8, word, word_size, hyphens,
1075 if (dict->utf8) return hnj_hyphen_norm(word, word_size, hyphens, rep, pos, cut);