simplify str_len

This commit is contained in:
Folkert 2020-12-03 16:22:47 +01:00
parent f21af47fc1
commit 3162ab5fc4
5 changed files with 16 additions and 127 deletions

View file

@ -206,6 +206,12 @@ const RocStr = extern struct {
}
};
// Str.len
pub fn strLen(string: RocStr) callconv(.C) u64 {
return string.len();
}
// Str.split
pub fn strSplitInPlace(array: [*]RocStr, array_len: usize, string: RocStr, delimiter: RocStr) callconv(.C) void {