Merge pull request #4364 from travisstaloch/str-graphemes

Str graphemes
This commit is contained in:
Richard Feldman 2022-10-22 22:31:50 -07:00 committed by GitHub
commit f734cc11c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 94 additions and 45 deletions

View file

@ -31,6 +31,7 @@ pub enum LowLevel {
StrGetScalarUnsafe,
StrGetCapacity,
StrWithCapacity,
StrGraphemes,
ListLen,
ListWithCapacity,
ListReserve,
@ -250,6 +251,7 @@ map_symbol_to_lowlevel! {
StrToNum <= STR_TO_NUM,
StrGetCapacity <= STR_CAPACITY,
StrWithCapacity <= STR_WITH_CAPACITY,
StrGraphemes <= STR_GRAPHEMES,
ListLen <= LIST_LEN,
ListGetCapacity <= LIST_CAPACITY,
ListWithCapacity <= LIST_WITH_CAPACITY,

View file

@ -1318,6 +1318,7 @@ define_builtins! {
52 STR_REPLACE_LAST: "replaceLast"
53 STR_WITH_CAPACITY: "withCapacity"
54 STR_WITH_PREFIX: "withPrefix"
55 STR_GRAPHEMES: "graphemes"
}
6 LIST: "List" => {
0 LIST_LIST: "List" exposed_apply_type=true // the List.List type alias