Gleam library which provides casefold, a function to convert a string to a case-agnostic comparable string.
- Gleam 77.1%
- JavaScript 15.2%
- Erlang 7.7%
| src | ||
| test | ||
| .gitignore | ||
| gleam.toml | ||
| manifest.toml | ||
| README.md | ||
casefold
A small collection of utility functions and constants for working with strings.
gleam add casefold@2
import casefold.{casefold}
pub fn main() -> Nil {
assert casefold("Ω and ẞ SHARP S") == "ω and ss sharp s"
}
Further documentation can be found at https://hexdocs.pm/casefold.
Development
gleam build # Build the project
gleam test # Run the tests