version 1.2 | | version 1.3 |
---|
| | |
/* | | /* |
* static char *rcsid_player_c = | | * static char *rcsid_player_c = |
* "$Id: re-cmp.c,v 1.2 1999/07/13 06:02:42 cvs Exp $"; | | * "$Id: re-cmp.c,v 1.3 2000/05/09 04:55:54 cvs Exp $"; |
*/ | | */ |
| | |
| | |
| | |
case sel_end: | | case sel_end: |
return (c == 0); | | return (c == 0); |
case sel_single: | | case sel_single: |
return (c == sel->u.single); | | return (tolower(c) == tolower(sel->u.single)); |
case sel_range: | | case sel_range: |
return (c >= sel->u.range.low && c <= sel->u.range.high); | | return (c >= sel->u.range.low && c <= sel->u.range.high); |
case sel_array: | | case sel_array: |
return (sel->u.array[c]); | | return (sel->u.array[c]); |
case sel_not_single: | | case sel_not_single: |
return (c != sel->u.single); | | return (tolower(c) != tolower(sel->u.single)); |
case sel_not_range: | | case sel_not_range: |
return (c < sel->u.range.low && c > sel->u.range.high); | | return (c < sel->u.range.low && c > sel->u.range.high); |
} | | } |