Home | History | Annotate | Download | only in hyphenation

Lines Matching refs:word_size

525 word_size,
537 if (word_size + 3 < MAX_WORD)
540 prep_word = hnj_malloc (word_size + 3);
545 for (i = 0; i < word_size; i++)
638 for (; i < word_size; i++)
640 hyphens[word_size] = '\0';
660 int hnj_hyphen_lhmin(int utf8, const char *word, int word_size, char * hyphens,
682 int hnj_hyphen_rhmin(int utf8, const char *word, int word_size, char * hyphens,
686 int j = word_size - 2;
706 int hnj_hyphen_hyph_(HyphenDict *dict, const char *word, int word_size,
730 if (word_size + 3 < MAX_CHARS) {
736 prep_word = hnj_malloc (word_size + 3);
737 matchlen = hnj_malloc ((word_size + 3) * sizeof(int));
738 matchindex = hnj_malloc ((word_size + 3) * sizeof(int));
739 matchrepl = hnj_malloc ((word_size + 3) * sizeof(char *));
745 for (i = 0; i < word_size; i++)
815 if (!isrepl) for(; isrepl < word_size; isrepl++) {
856 for (; i < word_size; i++)
858 hyphens[word_size] = '\0';
863 for (i = 0; i < word_size; i++)
867 for (i = 0; i < word_size; i++) {
872 *rep = (char **) malloc(sizeof(char *) * word_size);
873 *pos = (int *) malloc(sizeof(int) * word_size);
874 *cut = (int *) malloc(sizeof(int) * word_size);
875 for (k = 0; k < word_size; k++) {
907 if (word_size < MAX_CHARS) {
913 rep2 = hnj_malloc (word_size * sizeof(char *));
914 pos2 = hnj_malloc (word_size * sizeof(int));
915 cut2 = hnj_malloc (word_size * sizeof(int));
916 hyphens2 = hnj_malloc (word_size);
918 for (i = 0; i < word_size; i++) rep2[i] = NULL;
919 for (i = 0; i < word_size; i++)
920 if (hyphens[i]&1 || (begin > 0 && i + 1 == word_size)) {
941 *rep = (char **) malloc(sizeof(char *) * word_size);
942 *pos = (int *) malloc(sizeof(int) * word_size);
943 *cut = (int *) malloc(sizeof(int) * word_size);
944 for (k = 0; k < word_size; k++) {
961 for (j = 0; j < word_size; j++) rep2[j] = NULL;
966 hnj_hyphen_hyph_(dict->nextlevel, word, word_size,
968 if (!lend) hnj_hyphen_lhmin(dict->utf8, word, word_size, hyphens,
970 if (!rend) hnj_hyphen_rhmin(dict->utf8, word, word_size, hyphens,
987 int hnj_hyphen_norm(const char *word, int word_size, char * hyphens,
997 for (i = 0, j = -1; i < word_size; i++) {
1046 const char *word, int word_size, char * hyphens,
1049 hnj_hyphen_hyph_(dict, word, word_size, hyphens, rep, pos, cut,
1051 hnj_hyphen_lhmin(dict->utf8, word, word_size,
1053 hnj_hyphen_rhmin(dict->utf8, word, word_size,
1055 if (hyphword) hnj_hyphen_hyphword(word, word_size, hyphens, hyphword, rep, pos, cut);
1056 if (dict->utf8) return hnj_hyphen_norm(word, word_size, hyphens, rep, pos, cut);
1062 const char *word, int word_size, char * hyphens,
1068 hnj_hyphen_hyph_(dict, 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,
1074 if (hyphword) hnj_hyphen_hyphword(word, word_size, hyphens, hyphword, rep, pos, cut);
1075 if (dict->utf8) return hnj_hyphen_norm(word, word_size, hyphens, rep, pos, cut);