| OLD | NEW |
| 1 /* == Start of generated table == */ | 1 /* == Start of generated table == */ |
| 2 /* | 2 /* |
| 3 * The following table is generated by running: | 3 * The following table is generated by running: |
| 4 * | 4 * |
| 5 * ./gen-indic-table.py IndicSyllabicCategory.txt IndicMatraCategory.txt Block
s.txt | 5 * ./gen-indic-table.py IndicSyllabicCategory.txt IndicMatraCategory.txt Block
s.txt |
| 6 * | 6 * |
| 7 * on files with these headers: | 7 * on files with these headers: |
| 8 * | 8 * |
| 9 * # IndicSyllabicCategory-7.0.0.txt | 9 * # IndicSyllabicCategory-7.0.0.txt |
| 10 * # Date: 2014-06-03, 07:00:00 GMT [KW, LI, AG, RP] | 10 * # Date: 2014-06-03, 07:00:00 GMT [KW, LI, AG, RP] |
| (...skipping 843 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 854 /* 116C8 */ _(Nd,x), _(Nd,x), _(x,x), _(x,x), _(x,x), _(x,x), _(x,x), _(
x,x), | 854 /* 116C8 */ _(Nd,x), _(Nd,x), _(x,x), _(x,x), _(x,x), _(x,x), _(x,x), _(
x,x), |
| 855 | 855 |
| 856 }; /* Table items: 4488; occupancy: 73% */ | 856 }; /* Table items: 4488; occupancy: 73% */ |
| 857 | 857 |
| 858 INDIC_TABLE_ELEMENT_TYPE | 858 INDIC_TABLE_ELEMENT_TYPE |
| 859 hb_indic_get_categories (hb_codepoint_t u) | 859 hb_indic_get_categories (hb_codepoint_t u) |
| 860 { | 860 { |
| 861 switch (u >> 12) | 861 switch (u >> 12) |
| 862 { | 862 { |
| 863 case 0x0u: | 863 case 0x0u: |
| 864 if (hb_in_range (u, 0x0028u, 0x0040u)) return indic_table[u - 0x0028u + in
dic_offset_0x0028u]; | 864 if (hb_in_range (u, 0x0028u, 0x003Fu)) return indic_table[u - 0x0028u + in
dic_offset_0x0028u]; |
| 865 if (hb_in_range (u, 0x00D0u, 0x00D8u)) return indic_table[u - 0x00D0u + in
dic_offset_0x00d0u]; | 865 if (hb_in_range (u, 0x00D0u, 0x00D7u)) return indic_table[u - 0x00D0u + in
dic_offset_0x00d0u]; |
| 866 if (hb_in_range (u, 0x0900u, 0x0DF8u)) return indic_table[u - 0x0900u + in
dic_offset_0x0900u]; | 866 if (hb_in_range (u, 0x0900u, 0x0DF7u)) return indic_table[u - 0x0900u + in
dic_offset_0x0900u]; |
| 867 if (unlikely (u == 0x00A0u)) return _(CP,x); | 867 if (unlikely (u == 0x00A0u)) return _(CP,x); |
| 868 break; | 868 break; |
| 869 | 869 |
| 870 case 0x1u: | 870 case 0x1u: |
| 871 if (hb_in_range (u, 0x1000u, 0x10A0u)) return indic_table[u - 0x1000u + in
dic_offset_0x1000u]; | 871 if (hb_in_range (u, 0x1000u, 0x109Fu)) return indic_table[u - 0x1000u + in
dic_offset_0x1000u]; |
| 872 if (hb_in_range (u, 0x1700u, 0x17F0u)) return indic_table[u - 0x1700u + in
dic_offset_0x1700u]; | 872 if (hb_in_range (u, 0x1700u, 0x17EFu)) return indic_table[u - 0x1700u + in
dic_offset_0x1700u]; |
| 873 if (hb_in_range (u, 0x1900u, 0x1AA0u)) return indic_table[u - 0x1900u + in
dic_offset_0x1900u]; | 873 if (hb_in_range (u, 0x1900u, 0x1A9Fu)) return indic_table[u - 0x1900u + in
dic_offset_0x1900u]; |
| 874 if (hb_in_range (u, 0x1B00u, 0x1C50u)) return indic_table[u - 0x1B00u + in
dic_offset_0x1b00u]; | 874 if (hb_in_range (u, 0x1B00u, 0x1C4Fu)) return indic_table[u - 0x1B00u + in
dic_offset_0x1b00u]; |
| 875 if (hb_in_range (u, 0x1CD0u, 0x1CF8u)) return indic_table[u - 0x1CD0u + in
dic_offset_0x1cd0u]; | 875 if (hb_in_range (u, 0x1CD0u, 0x1CF7u)) return indic_table[u - 0x1CD0u + in
dic_offset_0x1cd0u]; |
| 876 break; | 876 break; |
| 877 | 877 |
| 878 case 0x2u: | 878 case 0x2u: |
| 879 if (hb_in_range (u, 0x2008u, 0x2018u)) return indic_table[u - 0x2008u + in
dic_offset_0x2008u]; | 879 if (hb_in_range (u, 0x2008u, 0x2017u)) return indic_table[u - 0x2008u + in
dic_offset_0x2008u]; |
| 880 if (unlikely (u == 0x25CCu)) return _(CP,x); | 880 if (unlikely (u == 0x25CCu)) return _(CP,x); |
| 881 break; | 881 break; |
| 882 | 882 |
| 883 case 0xAu: | 883 case 0xAu: |
| 884 if (hb_in_range (u, 0xA800u, 0xAAF8u)) return indic_table[u - 0xA800u + in
dic_offset_0xa800u]; | 884 if (hb_in_range (u, 0xA800u, 0xAAF7u)) return indic_table[u - 0xA800u + in
dic_offset_0xa800u]; |
| 885 if (hb_in_range (u, 0xABC0u, 0xAC00u)) return indic_table[u - 0xABC0u + in
dic_offset_0xabc0u]; | 885 if (hb_in_range (u, 0xABC0u, 0xABFFu)) return indic_table[u - 0xABC0u + in
dic_offset_0xabc0u]; |
| 886 break; | 886 break; |
| 887 | 887 |
| 888 case 0x10u: | 888 case 0x10u: |
| 889 if (hb_in_range (u, 0x10A00u, 0x10A48u)) return indic_table[u - 0x10A00u +
indic_offset_0x10a00u]; | 889 if (hb_in_range (u, 0x10A00u, 0x10A47u)) return indic_table[u - 0x10A00u +
indic_offset_0x10a00u]; |
| 890 break; | 890 break; |
| 891 | 891 |
| 892 case 0x11u: | 892 case 0x11u: |
| 893 if (hb_in_range (u, 0x11000u, 0x110C0u)) return indic_table[u - 0x11000u +
indic_offset_0x11000u]; | 893 if (hb_in_range (u, 0x11000u, 0x110BFu)) return indic_table[u - 0x11000u +
indic_offset_0x11000u]; |
| 894 if (hb_in_range (u, 0x11100u, 0x11238u)) return indic_table[u - 0x11100u +
indic_offset_0x11100u]; | 894 if (hb_in_range (u, 0x11100u, 0x11237u)) return indic_table[u - 0x11100u +
indic_offset_0x11100u]; |
| 895 if (hb_in_range (u, 0x112B0u, 0x11378u)) return indic_table[u - 0x112B0u +
indic_offset_0x112b0u]; | 895 if (hb_in_range (u, 0x112B0u, 0x11377u)) return indic_table[u - 0x112B0u +
indic_offset_0x112b0u]; |
| 896 if (hb_in_range (u, 0x11480u, 0x114E0u)) return indic_table[u - 0x11480u +
indic_offset_0x11480u]; | 896 if (hb_in_range (u, 0x11480u, 0x114DFu)) return indic_table[u - 0x11480u +
indic_offset_0x11480u]; |
| 897 if (hb_in_range (u, 0x11580u, 0x115C8u)) return indic_table[u - 0x11580u +
indic_offset_0x11580u]; | 897 if (hb_in_range (u, 0x11580u, 0x115C7u)) return indic_table[u - 0x11580u +
indic_offset_0x11580u]; |
| 898 if (hb_in_range (u, 0x11600u, 0x116D0u)) return indic_table[u - 0x11600u +
indic_offset_0x11600u]; | 898 if (hb_in_range (u, 0x11600u, 0x116CFu)) return indic_table[u - 0x11600u +
indic_offset_0x11600u]; |
| 899 break; | 899 break; |
| 900 | 900 |
| 901 default: | 901 default: |
| 902 break; | 902 break; |
| 903 } | 903 } |
| 904 return _(x,x); | 904 return _(x,x); |
| 905 } | 905 } |
| 906 | 906 |
| 907 #undef _ | 907 #undef _ |
| 908 | 908 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 947 #undef IMC_R | 947 #undef IMC_R |
| 948 #undef IMC_T | 948 #undef IMC_T |
| 949 #undef IMC_TB | 949 #undef IMC_TB |
| 950 #undef IMC_TBR | 950 #undef IMC_TBR |
| 951 #undef IMC_TL | 951 #undef IMC_TL |
| 952 #undef IMC_TLR | 952 #undef IMC_TLR |
| 953 #undef IMC_TR | 953 #undef IMC_TR |
| 954 #undef IMC_VOL | 954 #undef IMC_VOL |
| 955 | 955 |
| 956 /* == End of generated table == */ | 956 /* == End of generated table == */ |
| OLD | NEW |