Add zig function to check if bytes are valid unicode

This commit is contained in:
Jared Ramirez 2021-01-08 17:49:31 -08:00
parent c2a355ab4b
commit 8d73fcda7f
3 changed files with 47 additions and 2 deletions

View file

@ -25,6 +25,7 @@ comptime {
exportStrFn(str.strNumberOfBytes, "number_of_bytes");
exportStrFn(str.strFromIntC, "from_int");
exportStrFn(str.strEqual, "equal");
exportStrFn(str.isValidUnicode, "is_valid_unicode");
}
// Export helpers - Must be run inside a comptime