/ etherpad / node_modules / ep_etherpad-lite / plugin_packages / xmlchars /

[ICO]NameLast modifiedSizeDescription
[PARENTDIR]Parent Directory  -  
[DIR]xml/3 months ago -  
[DIR]xmlns/3 months ago -  
[   ]LICENSE40 years ago1.1K 
[TXT]README.md40 years ago1.3K 
[   ]package.json40 years ago2.0K 
[TXT]xmlchars.d.ts40 years ago9.1K 
[   ]xmlchars.js40 years ago6.7K 
[   ]xmlchars.js.map40 years ago3.0K 
README.md

Utilities for determining whether characters belong to character classes defined by the XML specs.

Organization

It used to be that the library was contained in a single file and you could just import/require/what-have-you the xmlchars module. However, that setup did not work well for people who cared about code optimization. Importing xmlchars meant importing all of the library and because of the way the code was generated there was no way to shake the resulting code tree.

Different modules cover different standards. At the time this documentation was last updated, we had:

Features

The "things" each module contains can be categorized as follows:

  1. "Fragments": these are parts and pieces of regular expressions that correspond to the productions defined in the standard that the module covers. You'd use these to build regular expressions.

  2. Regular expressions that correspond to the productions defined in the standard that the module covers.

  3. Lists: these are arrays of characters that correspond to the productions.

  4. Functions that test code points to verify whether they fit a production.

Apache/2.4.38 (Debian) Server at www.karls.computer Port 80