@holgerengels/compute-engine
Version:
Symbolic computing and numeric evaluations for JavaScript and Node.js
16 lines (15 loc) • 627 B
TypeScript
/* 0.26.0-alpha2 */
export declare function stringToCodepoints(string: string): number[];
/**
* Return a string or an array of graphemes.
*
* This includes:
* - emoji with skin and hair modifiers
* - emoji combination (for example "female pilot")
* - text emoji with an emoji presentation style modifier
* - U+1F512 U+FE0E 🔒︎
* - U+1F512 U+FE0F 🔒️
* - flags represented as two regional indicator codepoints
* - flags represented as a flag emoji + zwj + an emoji tag
* - other combinations (for example, rainbow flag)
*/
export declare function splitGraphemes(string: string): string | string[];