diff options
| author | 2024-02-26 18:54:11 -0400 | |
|---|---|---|
| committer | 2024-02-26 18:54:11 -0400 | |
| commit | 7d8f330db2bfb625a054eb7e21d397ff696c0b3f (patch) | |
| tree | ce62411836c8b5b8bd5addff4c0a66422a9922cc /src/main.zig | |
| parent | Using NormData and CanonData in Normalizer (diff) | |
| download | zg-7d8f330db2bfb625a054eb7e21d397ff696c0b3f.tar.gz zg-7d8f330db2bfb625a054eb7e21d397ff696c0b3f.tar.xz zg-7d8f330db2bfb625a054eb7e21d397ff696c0b3f.zip | |
Using NormData nfc and nfd
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 d1a0bb3..05c2ea4 100644 --- a/src/main.zig +++ b/src/main.zig | |||
| @@ -52,7 +52,7 @@ pub fn main() !void { | |||
| 52 | // while (iter.next()) |_| result += 1; | 52 | // while (iter.next()) |_| result += 1; |
| 53 | // while (iter.next()) |line| result += strWidth(line, &data); | 53 | // while (iter.next()) |line| result += strWidth(line, &data); |
| 54 | while (iter.next()) |line| { | 54 | while (iter.next()) |line| { |
| 55 | var nfc = try n.nfd(allocator, line); | 55 | var nfc = try n.nfc(allocator, line); |
| 56 | result += nfc.slice.len; | 56 | result += nfc.slice.len; |
| 57 | nfc.deinit(); | 57 | nfc.deinit(); |
| 58 | } | 58 | } |