|tagger||Kevin Moore <email@example.com>||Sat Nov 19 09:35:34 2016 -0800|
|author||Kevin Moore <firstname.lastname@example.org>||Fri Nov 18 15:39:58 2016 -0800|
|committer||Kevin Moore <email@example.com>||Fri Nov 18 15:41:57 2016 -0800|
Prepare for 1.1.1 release spelling fixes and readme tweaks
Character code constants.
These libraries define symbolic names for some character codes.
Import either one of the libraries:
import "package:charcode/ascii.dart"; import "package:charcode/html_entity.dart";
or import both libraries using the
The character names are preceded by a
$ to avoid conflicting with other variables due to the short and common names (for example “$i”).
The characters that are valid in a Dart identifier directly follow the
$3. Other characters are given symbolic names.
The names of letters are lower-case for lower-case letters, and mixed- or upper-case for upper-case letters. The names of symbols are all lower-case, and omit suffixes like “sign”, “symbol” and “mark”. Examples:
ascii.dart library defines a symbolic name for each ASCII character. For some characters, it has more than one name. For example the common
$tab and the official
$ht for the horizontal tab.
html_entity.dart library defines a constant for each HTML 4.01 character entity, using the standard entity abbreviation, including its case. Examples:
$aring for the lower-case
$Aring for the upper-case
The HTML entities includes all characters in the Latin-1 code page, greek letters and some mathematical symbols.
charcode.dart library just exports both
The Dart language doesn't have character literals. If that ever happens, this library will be irrelevant. Until then, this library can be used for the most common characters. See request for character literals.