unicode_helper 0.2.0 copy "unicode_helper: ^0.2.0" to clipboard
unicode_helper: ^0.2.0 copied to clipboard

Dart 1 only

This library is a workaround for isLetter() isDigit() with unicode characters.

Dart Unicode Helper #

Copyright (C) 2013 Edwin Bühler. All Rights Reserved.

Author: Edwin Bühler fulnir@gmail.com

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 #

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)
0
likes
15
pub points
0%
popularity

Publisher

unverified uploader

This library is a workaround for isLetter() isDigit() with unicode characters.

Repository
View/report issues

Documentation

Documentation

License

MIT (LICENSE)

Dependencies

sparse_list

More

Packages that depend on unicode_helper