- Notifications
You must be signed in to change notification settings - Fork5
Commite00f68e
committed
Add caching of ctype.h/wctype.h results in regc_locale.c.
While this doesn't save a huge amount of runtime, it still seems worthdoing, especially since I realized that the data copying I did in my firstdraft was quite unnecessary. In this version, once we have the resultscached, getting them back for re-use is really very cheap.Also, remove the hard-wired limitation to not consider wctype.h results forcharacter codes above 255. It turns out that we can't push the limit asfar up as I'd originally hoped, because the regex colormap code is notefficient enough to cope very well with character classes containing manythousand letters, which a Unicode locale is entirely capable of producing.Still, we can push it up to U+7FF (which I chose as the limit of 2-byteUTF8 characters), which will at least make Eastern Europeans happy pendinga better solution. Thus, this commit resolves the specific complaint inbug #6457, but not the more general issue that letters of non-westernalphabets are mostly not recognized as matching [[:alpha:]].1 parent27af914 commite00f68e
2 files changed
+260
-81
lines changedLines changed: 39 additions & 80 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
350 | 350 |
| |
351 | 351 |
| |
352 | 352 |
| |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
353 | 363 |
| |
354 | 364 |
| |
355 | 365 |
| |
| |||
489 | 499 |
| |
490 | 500 |
| |
491 | 501 |
| |
492 |
| - | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
493 | 507 |
| |
494 | 508 |
| |
495 | 509 |
| |
| |||
548 | 562 |
| |
549 | 563 |
| |
550 | 564 |
| |
551 |
| - | |
552 |
| - | |
553 |
| - | |
554 |
| - | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
555 | 570 |
| |
556 | 571 |
| |
557 | 572 |
| |
558 | 573 |
| |
559 | 574 |
| |
560 |
| - | |
561 |
| - | |
562 |
| - | |
563 |
| - | |
564 |
| - | |
565 |
| - | |
566 |
| - | |
567 |
| - | |
568 |
| - | |
| 575 | + | |
569 | 576 |
| |
570 | 577 |
| |
571 |
| - | |
572 |
| - | |
573 |
| - | |
574 |
| - | |
575 |
| - | |
576 |
| - | |
577 |
| - | |
578 |
| - | |
579 |
| - | |
| 578 | + | |
580 | 579 |
| |
581 | 580 |
| |
582 |
| - | |
583 |
| - | |
584 |
| - | |
585 |
| - | |
586 |
| - | |
587 |
| - | |
588 |
| - | |
589 |
| - | |
590 |
| - | |
| 581 | + | |
591 | 582 |
| |
592 | 583 |
| |
| 584 | + | |
593 | 585 |
| |
594 | 586 |
| |
595 | 587 |
| |
596 | 588 |
| |
597 | 589 |
| |
| 590 | + | |
598 | 591 |
| |
599 | 592 |
| |
600 | 593 |
| |
601 | 594 |
| |
602 | 595 |
| |
| 596 | + | |
603 | 597 |
| |
604 | 598 |
| |
605 | 599 |
| |
606 | 600 |
| |
607 | 601 |
| |
608 |
| - | |
609 |
| - | |
610 |
| - | |
| 602 | + | |
611 | 603 |
| |
612 | 604 |
| |
613 |
| - | |
614 |
| - | |
615 |
| - | |
616 |
| - | |
617 |
| - | |
618 |
| - | |
619 |
| - | |
620 |
| - | |
621 |
| - | |
| 605 | + | |
622 | 606 |
| |
623 | 607 |
| |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
624 | 613 |
| |
625 | 614 |
| |
626 | 615 |
| |
| |||
630 | 619 |
| |
631 | 620 |
| |
632 | 621 |
| |
633 |
| - | |
634 |
| - | |
635 |
| - | |
636 |
| - | |
637 |
| - | |
638 |
| - | |
639 |
| - | |
640 |
| - | |
641 |
| - | |
| 622 | + | |
642 | 623 |
| |
643 | 624 |
| |
644 |
| - | |
645 |
| - | |
646 |
| - | |
647 |
| - | |
648 |
| - | |
649 |
| - | |
650 |
| - | |
651 |
| - | |
652 |
| - | |
| 625 | + | |
653 | 626 |
| |
654 | 627 |
| |
655 |
| - | |
656 |
| - | |
657 |
| - | |
658 |
| - | |
659 |
| - | |
660 |
| - | |
661 |
| - | |
662 |
| - | |
663 |
| - | |
| 628 | + | |
664 | 629 |
| |
665 | 630 |
| |
666 |
| - | |
667 |
| - | |
668 |
| - | |
669 |
| - | |
670 |
| - | |
671 |
| - | |
672 |
| - | |
673 |
| - | |
674 |
| - | |
| 631 | + | |
675 | 632 |
| |
676 | 633 |
| |
| 634 | + | |
| 635 | + | |
677 | 636 |
| |
678 | 637 |
| |
679 | 638 |
| |
|
0 commit comments
Comments
(0)