mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
add string cloning helper
This commit is contained in:
parent
53e7a41f27
commit
ab3a431db7
5 changed files with 36 additions and 0 deletions
|
@ -143,6 +143,7 @@ comptime {
|
|||
exportStrFn(str.strTrim, "trim");
|
||||
exportStrFn(str.strTrimLeft, "trim_left");
|
||||
exportStrFn(str.strTrimRight, "trim_right");
|
||||
exportStrFn(str.strCloneTo, "clone_to");
|
||||
|
||||
inline for (INTEGERS) |T| {
|
||||
str.exportFromInt(T, ROC_BUILTINS ++ "." ++ STR ++ ".from_int.");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue