extending-char
Check whether a UTF-16 word is either a continuing word or a Unicode extending character
Last updated 8 years ago by marijn .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ gnpm install extending-char 
SYNC missed versions from official npm registry.

Extending-char

Tiny library for determining whether a character (in fact, an UTF-8 16-bit value) is an extending character, i.e. doesn't start a new glyph. The second half of surrogate pairs counts as an extending character as far as this library is concerned.

License: MIT

Interface

isExtendingChar(ch: string) → bool

Check whether the given character is an extending char.

isExtendingCharAt(string: string, pos: number) → bool

Check whether the character at the given position in the string is an extending char.

Current Tags

  • 1.0.1                                ...           latest (8 years ago)

2 Versions

  • 1.0.1                                ...           8 years ago
  • 1.0.0                                ...           8 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |