summaryrefslogtreecommitdiff
path: root/src/Normalizer.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/Normalizer.zig')
-rw-r--r--src/Normalizer.zig14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/Normalizer.zig b/src/Normalizer.zig
index a575bc4..abe35e5 100644
--- a/src/Normalizer.zig
+++ b/src/Normalizer.zig
@@ -470,7 +470,6 @@ fn nfxc(self: Self, allocator: mem.Allocator, str: []const u8, form: Form) !Resu
470 var buf: [4]u8 = undefined; 470 var buf: [4]u8 = undefined;
471 471
472 for (dcps) |cp| { 472 for (dcps) |cp| {
473 if (cp == tombstone) continue;
474 if (cp == tombstone) continue; // "Delete" 473 if (cp == tombstone) continue; // "Delete"
475 const len = try unicode.utf8Encode(cp, &buf); 474 const len = try unicode.utf8Encode(cp, &buf);
476 try cstr_list.appendSlice(buf[0..len]); 475 try cstr_list.appendSlice(buf[0..len]);
@@ -478,19 +477,6 @@ fn nfxc(self: Self, allocator: mem.Allocator, str: []const u8, form: Form) !Resu
478 477
479 return Result{ .allocator = allocator, .slice = try cstr_list.toOwnedSlice() }; 478 return Result{ .allocator = allocator, .slice = try cstr_list.toOwnedSlice() };
480 } 479 }
481
482 // We're still not finished, so create a new
483 // code point sequence with the marked code points
484 // removed.
485 // var tmp_list = try std.ArrayList(u21).initCapacity(allocator, dcps.len - deleted);
486 // defer tmp_list.deinit();
487 //
488 // for (dcps) |cp| {
489 // if (cp != tombstone) tmp_list.appendAssumeCapacity(cp);
490 // }
491 //
492 // allocator.free(dcps);
493 // dcps = try tmp_list.toOwnedSlice();
494 } 480 }
495} 481}
496 482