From 339eaebfe4242db4f30e41c13c5cd35cc80750b0 Mon Sep 17 00:00:00 2001 From: Jose Colon Rodriguez Date: Wed, 26 Jun 2024 13:56:44 -0400 Subject: Removed all inlines --- src/GraphemeData.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/GraphemeData.zig') diff --git a/src/GraphemeData.zig b/src/GraphemeData.zig index 1710870..0ed79f2 100644 --- a/src/GraphemeData.zig +++ b/src/GraphemeData.zig @@ -73,16 +73,16 @@ pub fn deinit(self: *const Self) void { } /// Lookup the grapheme break property for a code point. -pub inline fn gbp(self: Self, cp: u21) Gbp { +pub fn gbp(self: Self, cp: u21) Gbp { return @enumFromInt(self.s3[self.s2[self.s1[cp >> 8] + (cp & 0xff)]] >> 4); } /// Lookup the indic syllable type for a code point. -pub inline fn indic(self: Self, cp: u21) Indic { +pub fn indic(self: Self, cp: u21) Indic { return @enumFromInt((self.s3[self.s2[self.s1[cp >> 8] + (cp & 0xff)]] >> 1) & 0x7); } /// Lookup the indic syllable type for a code point. -pub inline fn isEmoji(self: Self, cp: u21) bool { +pub fn isEmoji(self: Self, cp: u21) bool { return self.s3[self.s2[self.s1[cp >> 8] + (cp & 0xff)]] & 1 == 1; } -- cgit v1.2.3