cli: add safe UTF-8 and supplied-buffer hex/base64 std modules
This commit is contained in:
42 files changed
+2807
-14
No files matched your search
@@ -0,0 +1,11 @@
|
||||
// expect: run
|
||||
// result: {"variant":"ok","payload":[8364,3]}
|
||||
// equivalent: std/text_utf8_scalar.air
|
||||
// phase: 6
|
||||
// spec: docs/spec/16-standard-library.md §2.5
|
||||
module test.text_scalar
|
||||
import std.utf8;
|
||||
|
||||
fn main() -> std.utf8.NextResult
|
||||
effects []
|
||||
{ return std.utf8.next(b"\xe2\x82\xac"); }
|
||||
Reference in new issue
Block a user