From 4815ecfff6288e03a6cb6183662c3095dfc2a138 Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Tue, 15 Oct 2024 04:27:52 -0700 Subject: [PATCH] rename ucd import decl --- src/root.zig | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/root.zig b/src/root.zig index 57413d1572412e255a5b5741f030991cb454f043..0ef7a1920afe2a284eb82eff05304449dd46d8d7 100644 --- a/src/root.zig +++ b/src/root.zig @@ -1,9 +1,9 @@ const std = @import("std"); -const unicodeucd = @import("unicode-ucd"); +const ucd = @import("unicode-ucd"); -pub fn hasDerivedCoreProperty(cp: u32, comptime prop: unicodeucd.derived_core_properties.CoreProperty.Property) bool { +pub fn hasDerivedCoreProperty(cp: u32, comptime prop: ucd.derived_core_properties.CoreProperty.Property) bool { @setEvalBranchQuota(100_000); - inline for (unicodeucd.derived_core_properties.data) |item| { + inline for (ucd.derived_core_properties.data) |item| { if (item.property == prop) { if (cp >= item.from and cp <= item.to) { return true; @@ -13,9 +13,9 @@ pub fn hasDerivedCoreProperty(cp: u32, comptime prop: unicodeucd.derived_core_pr return false; } -pub fn hasProperty(cp: u32, comptime prop: unicodeucd.prop_list.PropList.Property) bool { +pub fn hasProperty(cp: u32, comptime prop: ucd.prop_list.PropList.Property) bool { @setEvalBranchQuota(100_000); - inline for (unicodeucd.prop_list.data) |item| { + inline for (ucd.prop_list.data) |item| { if (item.property == prop) { if (cp >= item.from and cp <= item.to) { return true; -- 2.54.0