mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
simplify str_len
This commit is contained in:
parent
f21af47fc1
commit
3162ab5fc4
5 changed files with 16 additions and 127 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue