string is empty for dev backend

This commit is contained in:
Folkert 2023-04-23 18:16:08 +02:00
parent f45e4ed858
commit dd3d0a188e
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
5 changed files with 15 additions and 4 deletions

View file

@ -1525,6 +1525,10 @@ pub fn countUtf8Bytes(string: RocStr) callconv(.C) usize {
return string.len();
}
pub fn isEmpty(string: RocStr) callconv(.C) bool {
return string.isEmpty();
}
pub fn getCapacity(string: RocStr) callconv(.C) usize {
return string.getCapacity();
}