mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-17 01:05:02 +00:00
Merge pull request #7543 from HajagosNorbert/ascii
add with_ascii_uppercased and caseless_ascii_equals to Str
This commit is contained in:
commit
cf1cfefadb
49 changed files with 1974 additions and 1674 deletions
|
@ -1550,6 +1550,8 @@ fn low_level_no_rc(lowlevel: &LowLevel) -> RC {
|
|||
StrJoinWith => RC::NoRc,
|
||||
ListSortWith => RC::Rc,
|
||||
StrWithAsciiLowercased => RC::Rc,
|
||||
StrWithAsciiUppercased => RC::Rc,
|
||||
StrCaselessAsciiEquals => RC::NoRc,
|
||||
|
||||
ListAppendUnsafe
|
||||
| ListReserve
|
||||
|
|
|
@ -1259,6 +1259,8 @@ pub(crate) fn lowlevel_borrow_signature(op: LowLevel) -> &'static [Ownership] {
|
|||
ListIncref => &[OWNED],
|
||||
ListDecref => &[OWNED],
|
||||
StrWithAsciiLowercased => &[OWNED],
|
||||
StrWithAsciiUppercased => &[OWNED],
|
||||
StrCaselessAsciiEquals => &[BORROWED, BORROWED],
|
||||
|
||||
Eq | NotEq => &[BORROWED, BORROWED],
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue