charcode:Dart中字符代码的符号名称

时间:2021-05-24 09:38:20
【文件属性】:
文件名称:charcode:Dart中字符代码的符号名称
文件大小:31KB
文件格式:ZIP
更新时间:2021-05-24 09:38:20
Dart -- -- -- 字符码常量 该软件包为某些字符代码(也称为代码点)定义了符号名称。 当直接将字符作为整数使用时,可以使用它们来使代码更具可读性: if (firstChar == $A) ... 这不是Google的官方软件包,并且不受Google支持。 用法 导入以下任一库: import "package:charcode/ascii.dart" ; import "package:charcode/html_entity.dart" ; 或使用charcode.dart库导入两个库: import "package:charcode/charcode.dart" ; 命名 字符名称前面带有$以避免由于它们的简称和通用名称而与其他变量发生冲突(例如“ $ i”)。 Dart标识符中有效的字符直接跟在$ 。 示例: $_ , $a , $B和$3 。 其他字符被赋予符号
【文件预览】:
charcode-master
----.gitignore(34B)
----pubspec.yaml(269B)
----bin()
--------src()
--------charcode.dart(39KB)
----.travis.yml(434B)
----CONTRIBUTING.md(1KB)
----LICENSE(1KB)
----CHANGELOG.md(760B)
----README.md(2KB)
----example()
--------example.dart(783B)
----lib()
--------charcode.dart(630B)
--------html_entity.dart(17KB)
--------ascii.dart(9KB)
----AUTHORS(328B)
----test()
--------charcode_test.dart(7KB)
----analysis_options.yaml(399B)

网友评论