版博士V2.0程序
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
CPL 9104556504 v2.0.7 报表数据修改 1年前
..
xml v2.0.7 报表数据修改 1年前
xmlns/1.0 v2.0.7 报表数据修改 1年前
LICENSE v2.0.7 报表数据修改 1年前
README.md v2.0.7 报表数据修改 1年前
package.json v2.0.7 报表数据修改 1年前
xmlchars.d.ts v2.0.7 报表数据修改 1年前
xmlchars.js v2.0.7 报表数据修改 1年前
xmlchars.js.map v2.0.7 报表数据修改 1年前

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:

  • xmlchars/xml/1.0/ed5 which covers XML 1.0 edition 5.
  • xmlchars/xml/1.0/ed4 which covers XML 1.0 edition 4.
  • xmlchars/xml/1.1/ed2 which covers XML 1.0 edition 2.
  • xmlchars/xmlns/1.0/ed3 which covers XML Namespaces 1.0 edition 3.

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.