Home | History | Annotate | Download | only in hyphenation

Lines Matching refs:rep

661 	char *** rep, int ** pos, int ** cut, int lhmin)
666 if (*rep && *pos && *cut && (*rep)[j]) {
667 char * rh = strchr((*rep)[j], '=');
669 hnj_hyphen_strnlen((*rep)[j], rh - (*rep)[j], utf8)) < lhmin) {
670 free((*rep)[j]);
671 (*rep)[j] = NULL;
683 char *** rep, int ** pos, int ** cut, int rhmin)
689 if (*rep && *pos && *cut && (*rep)[j]) {
690 char * rh = strchr((*rep)[j], '=');
693 free((*rep)[j]);
694 (*rep)[j] = NULL;
707 char * hyphens, char *** rep, int ** pos, int ** cut,
869 if (rep && pos && cut) {
870 if (!*rep && !*pos && !*cut) {
872 *rep = (char **) malloc(sizeof(char *) * word_size);
876 (*rep)[k] = NULL;
881 (*rep)[matchindex[i] - 1] = hnj_strdup(matchrepl[matchindex[i]]);
925 if (*rep && *pos && *cut && (*rep)[i]) {
926 char * l = strchr((*rep)[i], '=');
927 strcpy(prep_word + 2 + i - (*pos)[i], (*rep)[i]);
929 hyph = (l - (*rep)[i]) - (*pos)[i];
938 if (rep2[j] && rep && pos && cut) {
939 if (!*rep && !*pos && !*cut) {
941 *rep = (char **) malloc(sizeof(char *) * word_size);
945 (*rep)[k] = NULL;
950 (*rep)[begin + j] = rep2[j];
956 if (*rep && *pos && *cut && (*rep)[i]) {
967 hyphens, rep, pos, cut, clhmin, crhmin, lend, rend);
969 rep, pos, cut, clhmin);
971 rep, pos, cut, crhmin);
988 char *** rep, int ** pos, int ** cut)
1001 if (rep && pos && cut && *rep && *pos && *cut) {
1013 (*rep)[j] = (*rep)[i];
1015 (*rep)[i] = NULL;
1027 rep, int ** pos, int ** cut)
1033 if (*rep && *pos && *cut && (*rep)[i]) {
1034 strcpy(hyphword + j - (*pos)[i] + 1, (*rep)[i]);
1035 j += strlen((*rep)[i]) - (*pos)[i];
1047 char *hyphword, char *** rep, int ** pos, int ** cut)
1049 hnj_hyphen_hyph_(dict, word, word_size, hyphens, rep, pos, cut,
1052 hyphens, rep, pos, cut, (dict->lhmin > 0 ? dict->lhmin : 2));
1054 hyphens, rep, pos, cut, (dict->rhmin > 0 ? dict->rhmin : 2));
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);
1063 char *hyphword, char *** rep, int ** pos, int ** cut,
1068 hnj_hyphen_hyph_(dict, word, word_size, hyphens, rep, pos, cut,
1071 rep, pos, cut, (lhmin > 0 ? lhmin : 2));
1073 rep, pos, cut, (rhmin > 0 ? rhmin : 2));
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);