summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Sam Atman2026-02-13 10:27:30 -0500
committerGravatar Sam Atman2026-02-13 10:27:30 -0500
commitf20348e9a3782ce11b4c9bee39be06fe2f6d50cd (patch)
tree5bd415bf80f1b5630d1c8821ca1e58e9847e2b23 /src
parentFix stage names in codegen/gencat (diff)
downloadzg-f20348e9a3782ce11b4c9bee39be06fe2f6d50cd.tar.gz
zg-f20348e9a3782ce11b4c9bee39be06fe2f6d50cd.tar.xz
zg-f20348e9a3782ce11b4c9bee39be06fe2f6d50cd.zip
Prerelease touchupv0.16.0-rc1no-allocation
Diffstat (limited to '')
-rw-r--r--src/code_point.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/code_point.zig b/src/code_point.zig
index 5f6c61c..2332c8b 100644
--- a/src/code_point.zig
+++ b/src/code_point.zig
@@ -31,7 +31,7 @@ pub const CodePoint = struct {
31/// Use `decodeAtIndex` or `decodeAtCursor`. 31/// Use `decodeAtIndex` or `decodeAtCursor`.
32pub fn decode(bytes: []const u8, offset: uoffset) ?CodePoint { 32pub fn decode(bytes: []const u8, offset: uoffset) ?CodePoint {
33 _ = .{ bytes, offset }; 33 _ = .{ bytes, offset };
34 @compileError("decode has been removed, use `decodeAtIndex`."); 34 @compileError("decode has been removed, use `decodeAtIndex` or `decodeAtCursor`.");
35} 35}
36 36
37/// Return the codepoint at `index`, even if `index` is in the middle 37/// Return the codepoint at `index`, even if `index` is in the middle
@@ -211,8 +211,8 @@ pub const Iterator = struct {
211// speed increase in exchange. 211// speed increase in exchange.
212// 212//
213// Credit for the algorithm goes to Björn Höhrmann, who wrote it up at 213// Credit for the algorithm goes to Björn Höhrmann, who wrote it up at
214// https://bjoern.hoehrmann.de/utf-8/decoder/dfa/ . The original 214// https://bjoern.hoehrmann.de/utf-8/decoder/dfa/. The license to the
215// license may be found in the ./credits folder. 215// original code may be found in the ./credits folder.
216// 216//
217 217
218/// Successful codepoint parse 218/// Successful codepoint parse