Merge pull request #7543 from HajagosNorbert/ascii

add with_ascii_uppercased and caseless_ascii_equals to Str
This commit is contained in:
Sam Mohr 2025-01-24 10:58:22 -08:00 committed by GitHub
commit cf1cfefadb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
49 changed files with 1974 additions and 1674 deletions

View file

@ -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

View file

@ -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],