diff options
| author | 2024-06-26 13:56:44 -0400 | |
|---|---|---|
| committer | 2024-06-26 13:56:44 -0400 | |
| commit | 339eaebfe4242db4f30e41c13c5cd35cc80750b0 (patch) | |
| tree | a9e55d10b6f504830de6a4882c131945f2d9ad07 /src/CaseData.zig | |
| parent | Added changes when casefolded back (diff) | |
| download | zg-339eaebfe4242db4f30e41c13c5cd35cc80750b0.tar.gz zg-339eaebfe4242db4f30e41c13c5cd35cc80750b0.tar.xz zg-339eaebfe4242db4f30e41c13c5cd35cc80750b0.zip | |
Removed all inlines
Diffstat (limited to 'src/CaseData.zig')
| -rw-r--r-- | src/CaseData.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/CaseData.zig b/src/CaseData.zig index 260637a..3a35fdd 100644 --- a/src/CaseData.zig +++ b/src/CaseData.zig | |||
| @@ -81,7 +81,7 @@ pub fn deinit(self: *const Self) void { | |||
| 81 | } | 81 | } |
| 82 | 82 | ||
| 83 | // Returns true if `cp` is either upper, lower, or title case. | 83 | // Returns true if `cp` is either upper, lower, or title case. |
| 84 | pub inline fn isCased(self: Self, cp: u21) bool { | 84 | pub fn isCased(self: Self, cp: u21) bool { |
| 85 | return self.prop_s2[self.prop_s1[cp >> 8] + (cp & 0xff)] & 4 == 4; | 85 | return self.prop_s2[self.prop_s1[cp >> 8] + (cp & 0xff)] & 4 == 4; |
| 86 | } | 86 | } |
| 87 | 87 | ||
| @@ -109,7 +109,7 @@ test "isUpperStr" { | |||
| 109 | } | 109 | } |
| 110 | 110 | ||
| 111 | /// Returns uppercase mapping for `cp`. | 111 | /// Returns uppercase mapping for `cp`. |
| 112 | pub inline fn toUpper(self: Self, cp: u21) u21 { | 112 | pub fn toUpper(self: Self, cp: u21) u21 { |
| 113 | return self.case_map[cp][0]; | 113 | return self.case_map[cp][0]; |
| 114 | } | 114 | } |
| 115 | 115 | ||
| @@ -167,7 +167,7 @@ test "isLowerStr" { | |||
| 167 | } | 167 | } |
| 168 | 168 | ||
| 169 | /// Returns lowercase mapping for `cp`. | 169 | /// Returns lowercase mapping for `cp`. |
| 170 | pub inline fn toLower(self: Self, cp: u21) u21 { | 170 | pub fn toLower(self: Self, cp: u21) u21 { |
| 171 | return self.case_map[cp][1]; | 171 | return self.case_map[cp][1]; |
| 172 | } | 172 | } |
| 173 | 173 | ||