From 3836b5e24a6d13823e6d2b0d2957eed4a00b98e7 Mon Sep 17 00:00:00 2001 From: Jose Colon Rodriguez Date: Wed, 27 Mar 2024 07:45:43 -0400 Subject: Rename DisplayWidthData --- src/DisplayWidth.zig | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/DisplayWidth.zig') diff --git a/src/DisplayWidth.zig b/src/DisplayWidth.zig index 85d04a0..8d5eb0f 100644 --- a/src/DisplayWidth.zig +++ b/src/DisplayWidth.zig @@ -8,9 +8,9 @@ const testing = std.testing; const ascii = @import("ascii"); const CodePointIterator = @import("code_point").Iterator; const GraphemeIterator = @import("grapheme").Iterator; -pub const Data = @import("DisplayWidthData"); +pub const DisplayWidthData = @import("DisplayWidthData"); -data: *Data, +data: *const DisplayWidthData, const Self = @This(); @@ -56,7 +56,7 @@ pub fn strWidth(self: Self, str: []const u8) usize { } test "strWidth" { - var data = try Data.init(testing.allocator); + var data = try DisplayWidthData.init(testing.allocator); defer data.deinit(); const self = Self{ .data = &data }; @@ -157,7 +157,7 @@ pub fn center( test "center" { const allocator = testing.allocator; - var data = try Data.init(allocator); + var data = try DisplayWidthData.init(allocator); defer data.deinit(); const self = Self{ .data = &data }; @@ -236,7 +236,7 @@ pub fn padLeft( test "padLeft" { const allocator = testing.allocator; - var data = try Data.init(allocator); + var data = try DisplayWidthData.init(allocator); defer data.deinit(); const self = Self{ .data = &data }; @@ -286,7 +286,7 @@ pub fn padRight( test "padRight" { const allocator = testing.allocator; - var data = try Data.init(allocator); + var data = try DisplayWidthData.init(allocator); defer data.deinit(); const self = Self{ .data = &data }; @@ -339,7 +339,7 @@ pub fn wrap( test "wrap" { const allocator = testing.allocator; - var data = try Data.init(allocator); + var data = try DisplayWidthData.init(allocator); defer data.deinit(); const self = Self{ .data = &data }; -- cgit v1.2.3