summaryrefslogtreecommitdiff
path: root/src/GraphemeData.zig
diff options
context:
space:
mode:
authorGravatar Jose Colon Rodriguez2024-06-26 13:56:44 -0400
committerGravatar Jose Colon Rodriguez2024-06-26 13:56:44 -0400
commit339eaebfe4242db4f30e41c13c5cd35cc80750b0 (patch)
treea9e55d10b6f504830de6a4882c131945f2d9ad07 /src/GraphemeData.zig
parentAdded changes when casefolded back (diff)
downloadzg-339eaebfe4242db4f30e41c13c5cd35cc80750b0.tar.gz
zg-339eaebfe4242db4f30e41c13c5cd35cc80750b0.tar.xz
zg-339eaebfe4242db4f30e41c13c5cd35cc80750b0.zip
Removed all inlines
Diffstat (limited to 'src/GraphemeData.zig')
-rw-r--r--src/GraphemeData.zig6
1 files changed, 3 insertions, 3 deletions
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 {
73} 73}
74 74
75/// Lookup the grapheme break property for a code point. 75/// Lookup the grapheme break property for a code point.
76pub inline fn gbp(self: Self, cp: u21) Gbp { 76pub fn gbp(self: Self, cp: u21) Gbp {
77 return @enumFromInt(self.s3[self.s2[self.s1[cp >> 8] + (cp & 0xff)]] >> 4); 77 return @enumFromInt(self.s3[self.s2[self.s1[cp >> 8] + (cp & 0xff)]] >> 4);
78} 78}
79 79
80/// Lookup the indic syllable type for a code point. 80/// Lookup the indic syllable type for a code point.
81pub inline fn indic(self: Self, cp: u21) Indic { 81pub fn indic(self: Self, cp: u21) Indic {
82 return @enumFromInt((self.s3[self.s2[self.s1[cp >> 8] + (cp & 0xff)]] >> 1) & 0x7); 82 return @enumFromInt((self.s3[self.s2[self.s1[cp >> 8] + (cp & 0xff)]] >> 1) & 0x7);
83} 83}
84 84
85/// Lookup the indic syllable type for a code point. 85/// Lookup the indic syllable type for a code point.
86pub inline fn isEmoji(self: Self, cp: u21) bool { 86pub fn isEmoji(self: Self, cp: u21) bool {
87 return self.s3[self.s2[self.s1[cp >> 8] + (cp & 0xff)]] & 1 == 1; 87 return self.s3[self.s2[self.s1[cp >> 8] + (cp & 0xff)]] & 1 == 1;
88} 88}