diff options
| author | 2024-06-26 13:56:44 -0400 | |
|---|---|---|
| committer | 2024-06-26 13:56:44 -0400 | |
| commit | 339eaebfe4242db4f30e41c13c5cd35cc80750b0 (patch) | |
| tree | a9e55d10b6f504830de6a4882c131945f2d9ad07 /src/GraphemeData.zig | |
| parent | Added changes when casefolded back (diff) | |
| download | zg-339eaebfe4242db4f30e41c13c5cd35cc80750b0.tar.gz zg-339eaebfe4242db4f30e41c13c5cd35cc80750b0.tar.xz zg-339eaebfe4242db4f30e41c13c5cd35cc80750b0.zip | |
Removed all inlines
Diffstat (limited to 'src/GraphemeData.zig')
| -rw-r--r-- | src/GraphemeData.zig | 6 |
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. |
| 76 | pub inline fn gbp(self: Self, cp: u21) Gbp { | 76 | pub 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. |
| 81 | pub inline fn indic(self: Self, cp: u21) Indic { | 81 | pub 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. |
| 86 | pub inline fn isEmoji(self: Self, cp: u21) bool { | 86 | pub 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 | } |