Commit 94a5ebf
committed
Remove some special EBCDIC code
The 'variant_byte_number' function was written to find the byte number
in a word of the first byte whose meaning varies depending on if the
string it is part of is encoded in UTF-8 or not. On ASCII machines,
that is simply when the upper bit is set. On EBCDIC machines, there is
no similar pattern, so this function hasn't been compiled on those.
A long time ago, I realized that this function could also handle binary
data by coercing that binary data into having the form of having that
bit set or not depending on the pattern being looked for, and then
calling that function.
But I actually hadn't realized until now that it was binary data not
tied to a character set that was being worked on. This commit rectifies
that. A new alias is added for that function that emphasizes that it
works on binary data, the function is now compiled for EBCDIC, and the
EBCDIC-only code that avoided using it is now removed.1 parent d734970 commit 94a5ebf
5 files changed
+26
-47
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4010 | 4010 | | |
4011 | 4011 | | |
4012 | 4012 | | |
| 4013 | + | |
| 4014 | + | |
4013 | 4015 | | |
4014 | 4016 | | |
4015 | 4017 | | |
| |||
4108 | 4110 | | |
4109 | 4111 | | |
4110 | 4112 | | |
4111 | | - | |
4112 | | - | |
4113 | | - | |
4114 | | - | |
4115 | 4113 | | |
4116 | 4114 | | |
4117 | 4115 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
848 | 848 | | |
849 | 849 | | |
850 | 850 | | |
| 851 | + | |
851 | 852 | | |
852 | 853 | | |
853 | 854 | | |
| |||
874 | 875 | | |
875 | 876 | | |
876 | 877 | | |
877 | | - | |
878 | | - | |
879 | | - | |
880 | 878 | | |
881 | 879 | | |
882 | 880 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2008 | 2008 | | |
2009 | 2009 | | |
2010 | 2010 | | |
2011 | | - | |
| 2011 | + | |
| 2012 | + | |
| 2013 | + | |
2012 | 2014 | | |
2013 | 2015 | | |
2014 | 2016 | | |
2015 | 2017 | | |
2016 | | - | |
2017 | | - | |
| 2018 | + | |
| 2019 | + | |
| 2020 | + | |
| 2021 | + | |
| 2022 | + | |
| 2023 | + | |
| 2024 | + | |
2018 | 2025 | | |
2019 | 2026 | | |
2020 | 2027 | | |
| |||
2023 | 2030 | | |
2024 | 2031 | | |
2025 | 2032 | | |
2026 | | - | |
| 2033 | + | |
2027 | 2034 | | |
2028 | 2035 | | |
2029 | 2036 | | |
| |||
2036 | 2043 | | |
2037 | 2044 | | |
2038 | 2045 | | |
2039 | | - | |
| 2046 | + | |
2040 | 2047 | | |
2041 | 2048 | | |
2042 | 2049 | | |
| |||
2069 | 2076 | | |
2070 | 2077 | | |
2071 | 2078 | | |
2072 | | - | |
| 2079 | + | |
2073 | 2080 | | |
2074 | 2081 | | |
2075 | 2082 | | |
2076 | | - | |
2077 | 2083 | | |
2078 | 2084 | | |
2079 | 2085 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
653 | 653 | | |
654 | 654 | | |
655 | 655 | | |
656 | | - | |
657 | | - | |
658 | | - | |
659 | | - | |
660 | | - | |
661 | | - | |
662 | | - | |
663 | | - | |
664 | | - | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
665 | 659 | | |
666 | 660 | | |
667 | 661 | | |
| |||
671 | 665 | | |
672 | 666 | | |
673 | 667 | | |
674 | | - | |
675 | | - | |
676 | | - | |
677 | | - | |
| 668 | + | |
678 | 669 | | |
679 | 670 | | |
680 | 671 | | |
| |||
789 | 780 | | |
790 | 781 | | |
791 | 782 | | |
792 | | - | |
793 | | - | |
794 | | - | |
795 | | - | |
796 | | - | |
797 | | - | |
798 | 783 | | |
799 | 784 | | |
800 | 785 | | |
801 | 786 | | |
802 | | - | |
803 | | - | |
804 | | - | |
805 | | - | |
| 787 | + | |
806 | 788 | | |
807 | 789 | | |
808 | 790 | | |
| |||
0 commit comments