Lines Matching defs:ranges
1418 struct { int low; int high; int diff; int total; } ranges[256];
1471 if (!(i > ranges[ranges_count-1].high))
1473 if (!(j > ranges[ranges_count-1].high + ranges[ranges_count-1].diff))
1476 if (!(diff >= ranges[ranges_count-1].diff))
1479 if (ranges_count > 0 && diff == ranges[ranges_count-1].diff)
1480 ranges[ranges_count-1].high = i;
1484 ranges[ranges_count].low = i;
1485 ranges[ranges_count].high = i;
1486 ranges[ranges_count].diff = diff;
1494 ranges[k].total = ranges_total;
1495 ranges_total += ranges[k].high - ranges[k].low + 1;
1500 printf(" 0x%04x, 0x%04x", ranges[k].low, ranges[k].high);
1511 printf(" 0x%04x, 0x%04x", ranges[k].low + ranges[k].diff, ranges[k].high + ranges[k].diff);
1522 printf(" { %5d, 0x%04x }", ranges[k].diff, ranges[k].total);
1535 for (i = ranges[k].total; i <= ranges[k].total + (ranges[k].high - ranges[k].low);) {
1536 if (charset2uni[i - ranges[k].total + ranges[k].low] != 0)
1547 if (i != (k+1 < ranges_count ? ranges[k+1].total : ranges_total)) abort();
1572 printf(" if (i >= %d && i <= %d) {\n", ranges[0].low, ranges[ranges_count-1].high);
1616 printf(" if (i >= 0x%04x && i <= 0x%04x) {\n", ranges[0].low + ranges[0].diff, ranges[ranges_count-1].high + ranges[ranges_count-1].diff);