summaryrefslogtreecommitdiff
path: root/src/CaseFold.zig
diff options
context:
space:
mode:
authorGravatar Jose Colon Rodriguez2024-03-27 21:52:02 -0400
committerGravatar Jose Colon Rodriguez2024-03-27 21:52:02 -0400
commit4ce891a8ce5336da39180964792110e131756cdd (patch)
treeb4ff0180157bb49e15d2c36f2cf0cdaab1a24535 /src/CaseFold.zig
parentFriendly general category methods (diff)
downloadzg-4ce891a8ce5336da39180964792110e131756cdd.tar.gz
zg-4ce891a8ce5336da39180964792110e131756cdd.tar.xz
zg-4ce891a8ce5336da39180964792110e131756cdd.zip
ScriptsData and made all Datas const
Diffstat (limited to 'src/CaseFold.zig')
-rw-r--r--src/CaseFold.zig8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/CaseFold.zig b/src/CaseFold.zig
index e00d03b..9b10e16 100644
--- a/src/CaseFold.zig
+++ b/src/CaseFold.zig
@@ -90,11 +90,11 @@ pub fn compatCaselessMatch(
90test "compatCaselessMatch" { 90test "compatCaselessMatch" {
91 const allocator = testing.allocator; 91 const allocator = testing.allocator;
92 92
93 var norm_data = try Normalize.NormData.init(allocator); 93 const norm_data = try Normalize.NormData.init(allocator);
94 defer norm_data.deinit(); 94 defer norm_data.deinit();
95 const n = Normalize{ .norm_data = &norm_data }; 95 const n = Normalize{ .norm_data = &norm_data };
96 96
97 var fold_data = try FoldData.init(allocator); 97 const fold_data = try FoldData.init(allocator);
98 defer fold_data.deinit(); 98 defer fold_data.deinit();
99 const caser = Self{ .fold_data = &fold_data }; 99 const caser = Self{ .fold_data = &fold_data };
100 100
@@ -163,11 +163,11 @@ pub fn canonCaselessMatch(
163test "canonCaselessMatch" { 163test "canonCaselessMatch" {
164 const allocator = testing.allocator; 164 const allocator = testing.allocator;
165 165
166 var norm_data = try Normalize.NormData.init(allocator); 166 const norm_data = try Normalize.NormData.init(allocator);
167 defer norm_data.deinit(); 167 defer norm_data.deinit();
168 const n = Normalize{ .norm_data = &norm_data }; 168 const n = Normalize{ .norm_data = &norm_data };
169 169
170 var fold_data = try FoldData.init(allocator); 170 const fold_data = try FoldData.init(allocator);
171 defer fold_data.deinit(); 171 defer fold_data.deinit();
172 const caser = Self{ .fold_data = &fold_data }; 172 const caser = Self{ .fold_data = &fold_data };
173 173