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
- Host: GitHub
- URL: https://github.com/toitlang/pkg-case
- Owner: toitlang
- License: bsd-3-clause
- Created: 2022-08-23T11:50:09.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-08T08:22:05.000Z (about 1 year ago)
- Last Synced: 2024-04-08T09:53:55.967Z (about 1 year ago)
- Language: Toit
- Size: 289 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Authors: AUTHORS
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 casemain:
case.to_upper "foo" // Prints "FOO"
case.to_upper "Straßenbahn" // Prints "STRASSENBAHN"
case.to_lower "Доверяй, но проверяй" // Prints "доверяй, но проверяй."
```