authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2024-10-15 04:27:52 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2024-10-15 04:27:52 -07:00
log4815ecfff6288e03a6cb6183662c3095dfc2a138
treec387f85cd96eb4248223ecfe9569073910002455
parentb36455e5d663c14d561d18d5fa62b35492a8e463

rename ucd import decl


1 files changed, 5 insertions(+), 5 deletions(-)

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