str.appendScalar

This commit is contained in:
Folkert 2022-07-04 16:27:04 +02:00
parent ab721dd3c1
commit 9c41a4d442
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
10 changed files with 53 additions and 1 deletions

View file

@ -28,6 +28,7 @@ pub enum LowLevel {
StrGetUnsafe,
StrSubstringUnsafe,
StrReserve,
StrAppendScalar,
ListLen,
ListWithCapacity,
ListGetUnsafe,
@ -185,6 +186,8 @@ impl LowLevelWrapperType {
Symbol::STR_FROM_UTF8_RANGE => WrapperIsRequired,
Symbol::STR_TO_UTF8 => CanBeReplacedBy(StrToUtf8),
Symbol::STR_REPEAT => CanBeReplacedBy(StrRepeat),
Symbol::STR_RESERVE => CanBeReplacedBy(StrReserve),
Symbol::STR_APPEND_SCALAR_UNSAFE => CanBeReplacedBy(StrAppendScalar),
Symbol::STR_TRIM => CanBeReplacedBy(StrTrim),
Symbol::STR_TRIM_LEFT => CanBeReplacedBy(StrTrimLeft),
Symbol::STR_TRIM_RIGHT => CanBeReplacedBy(StrTrimRight),

View file

@ -1197,6 +1197,8 @@ define_builtins! {
39 STR_SPLIT_LAST: "splitLast"
40 STR_WALK_UTF8_WITH_INDEX: "walkUtf8WithIndex"
41 STR_RESERVE: "reserve"
42 STR_APPEND_SCALAR_UNSAFE: "appendScalarUnsafe"
43 STR_APPEND_SCALAR: "appendScalar"
}
5 LIST: "List" => {
0 LIST_LIST: "List" imported // the List.List type alias