unicode 1.0.0 copy "unicode: ^1.0.0" to clipboard
unicode: ^1.0.0 copied to clipboard

Unicode characters library auto generated from http://www.unicode.org.

unicode #

Unicode characters library auto generated from http://www.unicode.org.

Version 1.0.0

Unicode Version 16.0.0

Example:

import 'package:unicode/unicode.dart' as unicode;

void main(List<String> args) {
  var ch = unicode.toRune('я');
  if (unicode.isLowerCaseLetter(ch)) {
    print('${char2Str(ch)} is lowercase letter');
  }

  ch = unicode.toRune('{');
  if (unicode.isOpenPunctuation(ch)) {
    print('${char2Str(ch)} is open punctuation');
  }

  ch = unicode.toRune('©');
  if (unicode.isOtherSymbol(ch)) {
    print('${char2Str(ch)} is other symbol');
  }

  ch = unicode.toRune('ǁ');
  if (unicode.isOtherLetter(ch)) {
    print('${char2Str(ch)} is other letter');
  }

  ch = unicode.charToTitleCase(unicode.toRune('dž'));
  print('${char2Str(ch)} is title case of dž');

  ch = unicode.charToUpperCase(unicode.toRune('dž'));
  print('${char2Str(ch)} is upper case of dž');
}

String char2Str(int c) {
  return String.fromCharCode(c);
}

Output:

я is lowercase letter
{ is open punctuation
© is other symbol
ǁ is other letter
Dž is title case of dž
DŽ is upper case of dž
7
likes
0
points
389k
downloads

Publisher

unverified uploader

Weekly Downloads

Unicode characters library auto generated from http://www.unicode.org.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

simple_sparse_list

More

Packages that depend on unicode