capellaresumo e50e316fbd Adicionando filtro de partículas | 6 anos atrás | |
---|---|---|
.. | ||
test | 6 anos atrás | |
.npmignore | 6 anos atrás | |
data.json | 6 anos atrás | |
data.trie | 6 anos atrás | |
generate.coffee | 6 anos atrás | |
index.coffee | 6 anos atrás | |
index.js | 6 anos atrás | |
package.json | 6 anos atrás | |
readme.md | 6 anos atrás |
Provides fast access to unicode character properties. Uses unicode-trie to compress the properties for all code points into just 12KB.
npm install unicode-properties
var unicode = require('unicode-properties');
unicode.getCategory('2'.charCodeAt()) //=> 'Nd'
unicode.getNumericValue('2'.charCodeAt()) //=> 2
Returns the unicode general category for the given code point.
Returns the script for the given code point.
Returns the canonical combining class for the given code point.
Returns the East Asian width for the given code point.
Returns the numeric value for the given code point, or null if there is no numeric value for that code point.
Returns whether the code point is an alphabetic character.
Returns whether the code point is a digit.
Returns whether the code point is a punctuation character.
Returns whether the code point is lower case.
Returns whether the code point is upper case.
Returns whether the code point is title case.
Returns whether the code point is whitespace: specifically, whether the category is one of Zs, Zl, or Zp.
Returns whether the code point is a base form. A code point of base form does not graphically combine with preceding characters.
Returns whether the code point is a mark character (e.g. accent).
MIT