|
Lines 3234-3240
struct hentry * AffixMgr::lookup(const c
Link Here
|
| 3234 |
} |
3234 |
} |
| 3235 |
|
3235 |
|
| 3236 |
// return the value of suffix |
3236 |
// return the value of suffix |
| 3237 |
const int AffixMgr::have_contclass() |
3237 |
int AffixMgr::have_contclass() |
| 3238 |
{ |
3238 |
{ |
| 3239 |
return havecontclass; |
3239 |
return havecontclass; |
| 3240 |
} |
3240 |
} |
|
Lines 4276-4282
int AffixMgr::redundant_condition(char f
Link Here
|
| 4276 |
if (strip[i] == cond[j]) in = 1; |
4276 |
if (strip[i] == cond[j]) in = 1; |
| 4277 |
} while ((j < (condl - 1)) && (cond[j] != ']')); |
4277 |
} while ((j < (condl - 1)) && (cond[j] != ']')); |
| 4278 |
if (j == (condl - 1) && (cond[j] != ']')) { |
4278 |
if (j == (condl - 1) && (cond[j] != ']')) { |
| 4279 |
HUNSPELL_WARNING(stderr, "error: line %d: missing ] in condition:\n%s\n", linenum); |
4279 |
HUNSPELL_WARNING(stderr, "error: line %d: missing ] in condition:\n%s\n", linenum, cond); |
| 4280 |
return 0; |
4280 |
return 0; |
| 4281 |
} |
4281 |
} |
| 4282 |
if ((!neg && !in) || (neg && in)) { |
4282 |
if ((!neg && !in) || (neg && in)) { |
|
Lines 4304-4310
int AffixMgr::redundant_condition(char f
Link Here
|
| 4304 |
if (strip[i] == cond[j]) in = 1; |
4304 |
if (strip[i] == cond[j]) in = 1; |
| 4305 |
} while ((j > 0) && (cond[j] != '[')); |
4305 |
} while ((j > 0) && (cond[j] != '[')); |
| 4306 |
if ((j == 0) && (cond[j] != '[')) { |
4306 |
if ((j == 0) && (cond[j] != '[')) { |
| 4307 |
HUNSPELL_WARNING(stderr, "error: error: %d: missing ] in condition:\n%s\n", linenum); |
4307 |
HUNSPELL_WARNING(stderr, "error: error: %d: missing ] in condition:\n%s\n", linenum, cond); |
| 4308 |
return 0; |
4308 |
return 0; |
| 4309 |
} |
4309 |
} |
| 4310 |
neg = (cond[j+1] == '^') ? 1 : 0; |
4310 |
neg = (cond[j+1] == '^') ? 1 : 0; |