https://github.com/fulnir/dart-unicode-helper
This library is a workaround for non ascii characters. Some simple functions like isLetter(int charCode) checking a unicode table with a given unicode value.
https://github.com/fulnir/dart-unicode-helper
Last synced: 4 months ago
JSON representation
This library is a workaround for non ascii characters. Some simple functions like isLetter(int charCode) checking a unicode table with a given unicode value.
- Host: GitHub
- URL: https://github.com/fulnir/dart-unicode-helper
- Owner: Fulnir
- License: mit
- Created: 2013-12-22T10:36:46.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-12-29T16:53:39.000Z (over 12 years ago)
- Last Synced: 2023-08-20T23:27:39.170Z (almost 3 years ago)
- Language: Dart
- Size: 273 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: changelog.md
- License: LICENSE
Awesome Lists containing this project
README
Dart Unicode Helper
---
[](https://drone.io/github.com/Fulnir/dart-unicode-helper/latest)
This library is a workaround for non ascii characters.
Some simple functions like isLetter(int charCode) checking a unicode table with a given unicode
value. The unicode table uses the SparseList (which has a file size 0f 26KB instead the uncompressed standard list with 1.8MB).
### Functions
```dart
bool isLetter(int c);
bool isUppercase(int c);
bool isLowercase(int c);
bool isDigit(int c);
bool isCurrency(int c);
bool isSeparator(int c);
bool isControl(int c);
```
### Table codes
```
Lu Letter, Uppercase
Ll Letter, Lowercase
Lt Letter, Titlecase
Lm Letter, Modifier
Lo Letter, Other
Mn Mark, Non-Spacing
Mc Mark, Spacing Combining
Me Mark, Enclosing
Nd Number, Decimal
Nl Number, Letter
No Number, Other
Pc Punctuation, Connector
Pd Punctuation, Dash
Ps Punctuation, Open
Pe Punctuation, Close
Pi Punctuation, Initial quote (may behave like Ps or Pe depending on usage)
Pf Punctuation, Final quote (may behave like Ps or Pe depending on usage)
Po Punctuation, Other
Sm Symbol, Math
Sc Symbol, Currency
Sk Symbol, Modifier
So Symbol, Other
Zs Separator, Space
Zl Separator, Line
Zp Separator, Paragraph
Cc Other, Control
Cf Other, Format
Cs Other, Surrogate
Co Other, Private Use
Cn Other, Not Assigned (no characters in the file have this property)
```