summaryrefslogtreecommitdiff
path: root/src/WidthData.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/WidthData.zig')
-rw-r--r--src/WidthData.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/WidthData.zig b/src/WidthData.zig
index cf31b7f..1f1ae6f 100644
--- a/src/WidthData.zig
+++ b/src/WidthData.zig
@@ -52,7 +52,7 @@ pub fn deinit(self: *const Self) void {
52/// 3, where BACKSPACE and DELETE return -1 and 3-em-dash returns 3. C0/C1 52/// 3, where BACKSPACE and DELETE return -1 and 3-em-dash returns 3. C0/C1
53/// control codes return 0. If `cjk` is true, ambiguous code points return 2, 53/// control codes return 0. If `cjk` is true, ambiguous code points return 2,
54/// otherwise they return 1. 54/// otherwise they return 1.
55pub inline fn codePointWidth(self: Self, cp: u21) i3 { 55pub fn codePointWidth(self: Self, cp: u21) i3 {
56 return self.s2[self.s1[cp >> 8] + (cp & 0xff)]; 56 return self.s2[self.s1[cp >> 8] + (cp & 0xff)];
57} 57}
58 58