| ... | ... | @@ -1,9 +1,9 @@ |
| 1 | 1 | const std = @import("std"); |
| 2 | | const unicodeucd = @import("unicode-ucd"); |
| 2 | const ucd = @import("unicode-ucd"); |
| 3 | 3 | |
| 4 | | pub fn hasDerivedCoreProperty(cp: u32, comptime prop: unicodeucd.derived_core_properties.CoreProperty.Property) bool { |
| 4 | pub fn hasDerivedCoreProperty(cp: u32, comptime prop: ucd.derived_core_properties.CoreProperty.Property) bool { |
| 5 | 5 | @setEvalBranchQuota(100_000); |
| 6 | | inline for (unicodeucd.derived_core_properties.data) |item| { |
| 6 | inline for (ucd.derived_core_properties.data) |item| { |
| 7 | 7 | if (item.property == prop) { |
| 8 | 8 | if (cp >= item.from and cp <= item.to) { |
| 9 | 9 | return true; |
| ... | ... | @@ -13,9 +13,9 @@ pub fn hasDerivedCoreProperty(cp: u32, comptime prop: unicodeucd.derived_core_pr |
| 13 | 13 | return false; |
| 14 | 14 | } |
| 15 | 15 | |
| 16 | | pub fn hasProperty(cp: u32, comptime prop: unicodeucd.prop_list.PropList.Property) bool { |
| 16 | pub fn hasProperty(cp: u32, comptime prop: ucd.prop_list.PropList.Property) bool { |
| 17 | 17 | @setEvalBranchQuota(100_000); |
| 18 | | inline for (unicodeucd.prop_list.data) |item| { |
| 18 | inline for (ucd.prop_list.data) |item| { |
| 19 | 19 | if (item.property == prop) { |
| 20 | 20 | if (cp >= item.from and cp <= item.to) { |
| 21 | 21 | return true; |