unicode
v0.3.1Unicode characters library auto generated from http://www.unicode.org.
Архив пакета: https://pubdev.letsnova.ru/api/archives/unicode/0.3.1.tar.gz
Установка
dart pub add unicodeREADME
unicode
This package is no longer supported because it was flagged by Google Dart developers as being published by an unknown person.
Publisher Unknown.
As a normal person, I believe that hardly anyone would want to use software from unknown publishers.
Unicode characters library auto generated from http://www.unicode.org.
Unicode Version 13.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');
}
}
String char2Str(int c) {
return String.fromCharCode(c);
}
История изменений
0.3.1
- This package is no longer supported because it was flagged by Google Dart developers as being published by an unknown person. Publisher Unknown. As a normal person, I believe that hardly anyone would want to use software from unknown publishers.
0.3.0
- The source code has been migrated to null safety.
0.2.4
- Removed
dart:iodependency
0.2.3
- Generation fo Unicode 13.0.0
0.2.2
- Added example
- Added constants with lowercase names
0.2.1
- Fixed bug in generator with parsing the ranges in
UnicodeData.txt
0.2.0
- Adaptation to Dart 2.0
- Generation fo Unicode 12.0.0
