Remove Str.fromUtf8Range

Seamless slices make this obsolete!
This commit is contained in:
Richard Feldman 2024-02-16 20:00:07 -05:00
parent 74e58d3d51
commit 37b154df4f
No known key found for this signature in database
GPG key ID: F1F21AA5B1D9E43B
15 changed files with 94 additions and 219 deletions

View file

@ -13,7 +13,7 @@ pub enum LowLevel {
StrSplit,
StrCountUtf8Bytes,
StrFromInt,
StrFromUtf8Range,
StrFromUtf8,
StrToUtf8,
StrRepeat,
StrFromFloat,
@ -257,7 +257,7 @@ map_symbol_to_lowlevel! {
StrEndsWith <= STR_ENDS_WITH;
StrSplit <= STR_SPLIT;
StrCountUtf8Bytes <= STR_COUNT_UTF8_BYTES;
StrFromUtf8Range <= STR_FROM_UTF8_RANGE_LOWLEVEL;
StrFromUtf8 <= STR_FROM_UTF8_LOWLEVEL;
StrToUtf8 <= STR_TO_UTF8;
StrRepeat <= STR_REPEAT;
StrTrim <= STR_TRIM;

View file

@ -1328,7 +1328,7 @@ define_builtins! {
40 STR_WALK_UTF8_WITH_INDEX: "walkUtf8WithIndex"
41 STR_RESERVE: "reserve"
42 STR_TO_NUM: "strToNum"
43 STR_FROM_UTF8_RANGE_LOWLEVEL: "fromUtf8RangeLowlevel"
43 STR_FROM_UTF8_LOWLEVEL: "fromUtf8Lowlevel"
44 STR_CAPACITY: "capacity"
45 STR_REPLACE_EACH: "replaceEach"
46 STR_REPLACE_FIRST: "replaceFirst"