mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 12:18:19 +00:00
run formatter, change Str.dropPrefix to snake_case in failing test.
This commit is contained in:
parent
8403f1ea19
commit
41fafc1497
2 changed files with 2 additions and 2 deletions
|
@ -1105,6 +1105,6 @@ drop_suffix = |haystack, suffix|
|
|||
## That said, strings received from user input can always contain non-ASCII Unicode characters, and lowercasing [Unicode](https://unicode.org) works differently in different languages. For example, the string `"I"lowercases to `"i"## ` in English and to `"ı"` (a [dotless i](https://en.wikipedia.org/wiki/Dotless_I)) in Turkish. These rules can also change in each [Unicode release](https://www.unicode.org/releases/), so we have separate [`unicode` package]## (https://github.com/roc-lang/unicode) for Unicode capitalization that can be upgraded independently from the language's builtins.
|
||||
##
|
||||
## To do a case-insensitive comparison of the ASCII characters in a string, use [`caseless_ascii_equals`](#caseless_ascii_equals).
|
||||
with_ascii_lowercased: Str -> Str
|
||||
with_ascii_lowercased : Str -> Str
|
||||
|
||||
expect Str.with_ascii_lowercased "cOFFÉ" == "XYZFÉ"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue