mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 12:18:19 +00:00
add with_ascii_uppercased and caseless_ascii_equals to Str
This commit is contained in:
parent
690e690bb7
commit
fc0a9ec4cf
49 changed files with 1974 additions and 1673 deletions
|
@ -1726,6 +1726,20 @@ trait Backend<'a> {
|
|||
arg_layouts,
|
||||
ret_layout,
|
||||
),
|
||||
LowLevel::StrWithAsciiUppercased => self.build_fn_call(
|
||||
sym,
|
||||
bitcode::STR_WITH_ASCII_UPPERCASED.to_string(),
|
||||
args,
|
||||
arg_layouts,
|
||||
ret_layout,
|
||||
),
|
||||
LowLevel::StrCaselessAsciiEquals => self.build_fn_call(
|
||||
sym,
|
||||
bitcode::STR_CASELESS_ASCII_EQUALS.to_string(),
|
||||
args,
|
||||
arg_layouts,
|
||||
ret_layout,
|
||||
),
|
||||
LowLevel::StrToNum => {
|
||||
let number_layout = match self.interner().get_repr(*ret_layout) {
|
||||
LayoutRepr::Struct(field_layouts) => field_layouts[0], // TODO: why is it sometimes a struct?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue