Sha256: 6916623e037f249c736693584bc79009c70b92debb4997cedbf9c82475bf6f57

Contents?: true

Size: 1.36 KB

Versions: 46

Compression:

Stored size: 1.36 KB

Contents

import GraphemerIterator from './GraphemerIterator';
export default class Graphemer {
    /**
     * Returns the next grapheme break in the string after the given index
     * @param string {string}
     * @param index {number}
     * @returns {number}
     */
    static nextBreak(string: string, index: number): number;
    /**
     * Breaks the given string into an array of grapheme clusters
     * @param str {string}
     * @returns {string[]}
     */
    splitGraphemes(str: string): string[];
    /**
     * Returns an iterator of grapheme clusters in the given string
     * @param str {string}
     * @returns {GraphemerIterator}
     */
    iterateGraphemes(str: string): GraphemerIterator;
    /**
     * Returns the number of grapheme clusters in the given string
     * @param str {string}
     * @returns {number}
     */
    countGraphemes(str: string): number;
    /**
     * Given a Unicode code point, determines this symbol's grapheme break property
     * @param code {number} Unicode code point
     * @returns {number}
     */
    static getGraphemeBreakProperty(code: number): number;
    /**
     * Given a Unicode code point, returns if symbol is an extended pictographic or some other break
     * @param code {number} Unicode code point
     * @returns {number}
     */
    static getEmojiProperty(code: number): number;
}
//# sourceMappingURL=Graphemer.d.ts.map

Version data entries

46 entries across 46 versions & 3 rubygems

Version Path
rapid_stack-0.2.0 templates/frontend/node_modules/graphemer/lib/Graphemer.d.ts
rapid_stack-0.1.1 templates/FrontEnd/node_modules/graphemer/lib/Graphemer.d.ts
rapid_stack-0.1.0 templates/FrontEnd/node_modules/graphemer/lib/Graphemer.d.ts
immosquare-cleaner-0.1.60 node_modules/graphemer/lib/Graphemer.d.ts
immosquare-cleaner-0.1.59 node_modules/graphemer/lib/Graphemer.d.ts
immosquare-cleaner-0.1.58 node_modules/graphemer/lib/Graphemer.d.ts
immosquare-cleaner-0.1.57 node_modules/graphemer/lib/Graphemer.d.ts
immosquare-cleaner-0.1.56 node_modules/graphemer/lib/Graphemer.d.ts
immosquare-cleaner-0.1.55 node_modules/graphemer/lib/Graphemer.d.ts
immosquare-cleaner-0.1.54 node_modules/graphemer/lib/Graphemer.d.ts
immosquare-cleaner-0.1.53 node_modules/graphemer/lib/Graphemer.d.ts
immosquare-cleaner-0.1.52 node_modules/graphemer/lib/Graphemer.d.ts
immosquare-cleaner-0.1.51 node_modules/graphemer/lib/Graphemer.d.ts
immosquare-cleaner-0.1.50 node_modules/graphemer/lib/Graphemer.d.ts
immosquare-cleaner-0.1.49 node_modules/graphemer/lib/Graphemer.d.ts
immosquare-cleaner-0.1.48 node_modules/graphemer/lib/Graphemer.d.ts
immosquare-cleaner-0.1.47 node_modules/graphemer/lib/Graphemer.d.ts
immosquare-cleaner-0.1.46 node_modules/graphemer/lib/Graphemer.d.ts
immosquare-cleaner-0.1.45 node_modules/graphemer/lib/Graphemer.d.ts
immosquare-cleaner-0.1.32 node_modules/graphemer/lib/Graphemer.d.ts