Lines 821-830
Link Here
|
821 |
(void)REQUIRE((uch)start <= (uch)finish, REG_ERANGE); |
821 |
(void)REQUIRE((uch)start <= (uch)finish, REG_ERANGE); |
822 |
CHaddrange(p, cs, start, finish); |
822 |
CHaddrange(p, cs, start, finish); |
823 |
} else { |
823 |
} else { |
824 |
(void)REQUIRE(__collate_range_cmp(table, start, finish) <= 0, REG_ERANGE); |
824 |
(void)REQUIRE(__wcollate_range_cmp(table, start, finish) <= 0, REG_ERANGE); |
825 |
for (i = 0; i <= UCHAR_MAX; i++) { |
825 |
for (i = 0; i <= UCHAR_MAX; i++) { |
826 |
if ( __collate_range_cmp(table, start, i) <= 0 |
826 |
if ( __wcollate_range_cmp(table, start, i) <= 0 |
827 |
&& __collate_range_cmp(table, i, finish) <= 0 |
827 |
&& __wcollate_range_cmp(table, i, finish) <= 0 |
828 |
) |
828 |
) |
829 |
CHadd(p, cs, i); |
829 |
CHadd(p, cs, i); |
830 |
} |
830 |
} |