An open API service indexing awesome lists of open source software.

https://github.com/toitlang/pkg-case

Utilities for upper and lower case of Unicode strings
https://github.com/toitlang/pkg-case

Last synced: 19 days ago
JSON representation

Utilities for upper and lower case of Unicode strings

Awesome Lists containing this project

README

        

# Toit package: case

Utilities for upper and lower case of Unicode strings.

This code uses a very compact encoding of the upper- and lower-case
information from Unicode. It is intended to be compact enough for
embedded devices.

This code was originally written in Dart for the Dartino project and has
been ported to Toit by Toitware.

## Examples

```
import case

main:
print
case.to_upper "foo" // Prints "FOO"
print
case.to_upper "Straßenbahn" // Prints "STRASSENBAHN"
print
case.to_lower "Доверяй, но проверяй" // Prints "доверяй, но проверяй."
```