gmx-word-counter
Version:
Fast, GMX-V compliant word and character counter. Can count both logographic and non-logographic languages correctly. Also supports generic counting for cases when language is unknown.
6 lines (5 loc) • 385 B
TypeScript
export declare function isWhitespaceCp(codePoint: number): boolean;
export declare function isApostropheCp(codepoint: number): codepoint is 39 | 8217;
export declare function isHyphenCp(codepoint: number): codepoint is 45 | 8208 | 8209 | 1418 | 12448;
export declare function isPunctuationCp(codepoint: number): boolean;
export declare function isPunctuation(symbol: string): boolean;