diff options
Diffstat (limited to 'src/CombiningData.zig')
| -rw-r--r-- | src/CombiningData.zig | 4 |
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. |
| 42 | pub inline fn ccc(self: Self, cp: u21) u8 { | 42 | pub 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. |
| 47 | pub inline fn isStarter(self: Self, cp: u21) bool { | 47 | pub 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 | } |