diff options
| author | 2024-02-28 20:30:48 -0400 | |
|---|---|---|
| committer | 2024-02-28 20:30:48 -0400 | |
| commit | 3735e5b7bbd8d0d25687f3080925084b9dbb938d (patch) | |
| tree | 3e2113e0030f18879f65a5d3f24b723b27a5b95b /src/main.zig | |
| parent | Using slices for decompositions in Normalizer (diff) | |
| download | zg-3735e5b7bbd8d0d25687f3080925084b9dbb938d.tar.gz zg-3735e5b7bbd8d0d25687f3080925084b9dbb938d.tar.xz zg-3735e5b7bbd8d0d25687f3080925084b9dbb938d.zip | |
Added nfc latin1 check back
Diffstat (limited to 'src/main.zig')
| -rw-r--r-- | src/main.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.zig b/src/main.zig index 45e5e36..59a0fbc 100644 --- a/src/main.zig +++ b/src/main.zig | |||
| @@ -56,7 +56,7 @@ pub fn main() !void { | |||
| 56 | // while (iter.next()) |_| result += 1; | 56 | // while (iter.next()) |_| result += 1; |
| 57 | // while (iter.next()) |line| result += strWidth(line, &data); | 57 | // while (iter.next()) |line| result += strWidth(line, &data); |
| 58 | while (iter.next()) |line| { | 58 | while (iter.next()) |line| { |
| 59 | const nfc = try n.nfd(allocator, line); | 59 | const nfc = try n.nfkc(allocator, line); |
| 60 | result += nfc.slice.len; | 60 | result += nfc.slice.len; |
| 61 | // nfc.deinit(); | 61 | // nfc.deinit(); |
| 62 | } | 62 | } |