unicode-properties

WebJar for unicode-properties

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

unicode-properties
Последняя версия

Последняя версия

1.3.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

unicode-properties
WebJar for unicode-properties
Ссылка на сайт

Ссылка на сайт

https://www.webjars.org
Система контроля версий

Система контроля версий

https://github.com/foliojs/unicode-properties

Скачать unicode-properties

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/unicode-properties/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>unicode-properties</artifactId>
    <version>1.3.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/unicode-properties/
implementation 'org.webjars.npm:unicode-properties:1.3.1'
// https://jarcasting.com/artifacts/org.webjars.npm/unicode-properties/
implementation ("org.webjars.npm:unicode-properties:1.3.1")
'org.webjars.npm:unicode-properties:jar:1.3.1'
<dependency org="org.webjars.npm" name="unicode-properties" rev="1.3.1">
  <artifact name="unicode-properties" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='unicode-properties', version='1.3.1')
)
libraryDependencies += "org.webjars.npm" % "unicode-properties" % "1.3.1"
[org.webjars.npm/unicode-properties "1.3.1"]

Зависимости

compile (2)

Идентификатор библиотеки Тип Версия
org.webjars.npm : base64-js jar [1.3.0,2)
org.webjars.npm : unicode-trie jar [2.0.0,3)

Модули Проекта

Данный проект не имеет модулей.

unicode-properties

Provides fast access to unicode character properties. Uses unicode-trie to compress the properties for all code points into just 9.5KB. Currently, unicode-properties supports Unicode version 12.

Usage

npm install unicode-properties
var unicode = require('unicode-properties');

unicode.getCategory('2'.charCodeAt()) //=> 'Nd'
unicode.getNumericValue('2'.charCodeAt()) //=> 2

API

getCategory(codePoint)

Returns the unicode general category for the given code point.

getScript(codePoint)

Returns the script for the given code point.

getCombiningClass(codePoint)

Returns the canonical combining class for the given code point.

getEastAsianWidth(codePoint)

Returns the East Asian width for the given code point.

getNumericValue(codePoint)

Returns the numeric value for the given code point, or null if there is no numeric value for that code point.

isAlphabetic(codePoint)

Returns whether the code point is an alphabetic character.

isDigit(codePoint)

Returns whether the code point is a digit.

isPunctuation(codePoint)

Returns whether the code point is a punctuation character.

isLowerCase(codePoint)

Returns whether the code point is lower case.

isUpperCase(codePoint)

Returns whether the code point is upper case.

isTitleCase(codePoint)

Returns whether the code point is title case.

isWhiteSpace(codePoint)

Returns whether the code point is whitespace: specifically, whether the category is one of Zs, Zl, or Zp.

isBaseForm(codePoint)

Returns whether the code point is a base form. A code point of base form does not graphically combine with preceding characters.

isMark(codePoint)

Returns whether the code point is a mark character (e.g. accent).

License

MIT

org.webjars.npm
📃 Typography and Page Layout in JavaScript

Версии библиотеки

Версия
1.3.1