add substringUnsafe roc function

This commit is contained in:
Folkert 2022-07-03 17:15:25 +02:00
parent 45eb8b9d77
commit be3800d7fa
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
9 changed files with 29 additions and 0 deletions

View file

@ -277,6 +277,9 @@ impl<'a> LowLevelCall<'a> {
StrToUtf8 => self.load_args_and_call_zig(backend, bitcode::STR_TO_UTF8),
StrRepeat => self.load_args_and_call_zig(backend, bitcode::STR_REPEAT),
StrTrim => self.load_args_and_call_zig(backend, bitcode::STR_TRIM),
StrSubstringUnsafe => {
self.load_args_and_call_zig(backend, bitcode::STR_SUBSTRING_UNSAFE)
}
// List
ListLen => match backend.storage.get(&self.arguments[0]) {