|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
1.3 KB
|
| Line | |
|---|
| 1 | Utilities for determining whether characters belong to character classes defined
|
|---|
| 2 | by the XML specs.
|
|---|
| 3 |
|
|---|
| 4 | ## Organization
|
|---|
| 5 |
|
|---|
| 6 | It used to be that the library was contained in a single file and you could just
|
|---|
| 7 | import/require/what-have-you the `xmlchars` module. However, that setup did not
|
|---|
| 8 | work well for people who cared about code optimization. Importing `xmlchars`
|
|---|
| 9 | meant importing *all* of the library and because of the way the code was
|
|---|
| 10 | generated there was no way to shake the resulting code tree.
|
|---|
| 11 |
|
|---|
| 12 | Different modules cover different standards. At the time this documentation was
|
|---|
| 13 | last updated, we had:
|
|---|
| 14 |
|
|---|
| 15 | * `xmlchars/xml/1.0/ed5` which covers XML 1.0 edition 5.
|
|---|
| 16 | * `xmlchars/xml/1.0/ed4` which covers XML 1.0 edition 4.
|
|---|
| 17 | * `xmlchars/xml/1.1/ed2` which covers XML 1.0 edition 2.
|
|---|
| 18 | * `xmlchars/xmlns/1.0/ed3` which covers XML Namespaces 1.0 edition 3.
|
|---|
| 19 |
|
|---|
| 20 | ## Features
|
|---|
| 21 |
|
|---|
| 22 | The "things" each module contains can be categorized as follows:
|
|---|
| 23 |
|
|---|
| 24 | 1. "Fragments": these are parts and pieces of regular expressions that
|
|---|
| 25 | correspond to the productions defined in the standard that the module
|
|---|
| 26 | covers. You'd use these to *build regular expressions*.
|
|---|
| 27 |
|
|---|
| 28 | 2. Regular expressions that correspond to the productions defined in the
|
|---|
| 29 | standard that the module covers.
|
|---|
| 30 |
|
|---|
| 31 | 3. Lists: these are arrays of characters that correspond to the productions.
|
|---|
| 32 |
|
|---|
| 33 | 4. Functions that test code points to verify whether they fit a production.
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.