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 @@
11const 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 {
55 @setEvalBranchQuota(100_000);
6 inline for (unicodeucd.derived_core_properties.data) |item| {
6 inline for (ucd.derived_core_properties.data) |item| {
77 if (item.property == prop) {
88 if (cp >= item.from and cp <= item.to) {
99 return true;
......@@ -13,9 +13,9 @@ pub fn hasDerivedCoreProperty(cp: u32, comptime prop: unicodeucd.derived_core_pr
1313 return false;
1414}
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 {
1717 @setEvalBranchQuota(100_000);
18 inline for (unicodeucd.prop_list.data) |item| {
18 inline for (ucd.prop_list.data) |item| {
1919 if (item.property == prop) {
2020 if (cp >= item.from and cp <= item.to) {
2121 return true;