summaryrefslogtreecommitdiff
path: root/src/CombiningData.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/CombiningData.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/CombiningData.zig')
-rw-r--r--src/CombiningData.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/CombiningData.zig b/src/CombiningData.zig
index 16b923f..44140f8 100644
--- a/src/CombiningData.zig
+++ b/src/CombiningData.zig
@@ -39,11 +39,11 @@ pub fn deinit(self: *const Self) void {
39} 39}
40 40
41/// Returns the canonical combining class for a code point. 41/// Returns the canonical combining class for a code point.
42pub inline fn ccc(self: Self, cp: u21) u8 { 42pub fn ccc(self: Self, cp: u21) u8 {
43 return self.s2[self.s1[cp >> 8] + (cp & 0xff)]; 43 return self.s2[self.s1[cp >> 8] + (cp & 0xff)];
44} 44}
45 45
46/// True if `cp` is a starter code point, not a combining character. 46/// True if `cp` is a starter code point, not a combining character.
47pub inline fn isStarter(self: Self, cp: u21) bool { 47pub fn isStarter(self: Self, cp: u21) bool {
48 return self.s2[self.s1[cp >> 8] + (cp & 0xff)] == 0; 48 return self.s2[self.s1[cp >> 8] + (cp & 0xff)] == 0;
49} 49}