src/entities.bend checks
raw source on the hub · import ezhttp@0.24.0.0/src/entities.bend as Entities
ezhttp/src/entities: the HTML Standard's named character references (HTML §13.5, https://html.spec.whatwg.org/entities.json), 2231 names. Generated by tools/entities.py; do not edit by hand.
Trusted, not proved: this is the HTML Standard's named character
references table: every name in it once, without its leading &, with the
one or two code points it stands for. tools/entities.py generates it from
the standard's entities.json (https://html.spec.whatwg.org/entities.json,
the same table as Python's html.entities.html5), checking that each
entry's code points spell its characters; no law reaches that: a law can
say how the table is read (laws/NamedReferencesLongestMatch.bend), not
that its rows are the standard's. No test compares html_unescape against
Python's html.unescape.
1 import
import Base
Types
type Ref source · line 18 · raw
Data
one named character reference: its name (with its ; when it has one)
and the one or two code points it stands for, second 0 when one
Ref@name:String -> @first:U32 -> @second:U32 -> Ref
Definitions
def table source · line 22 · raw
List<&2, Ref>
every named character reference, sorted by name