main
Last change
on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
1.4 KB
|
Line | |
---|
1 | import GraphemerIterator from './GraphemerIterator';
|
---|
2 | export default class Graphemer {
|
---|
3 | /**
|
---|
4 | * Returns the next grapheme break in the string after the given index
|
---|
5 | * @param string {string}
|
---|
6 | * @param index {number}
|
---|
7 | * @returns {number}
|
---|
8 | */
|
---|
9 | static nextBreak(string: string, index: number): number;
|
---|
10 | /**
|
---|
11 | * Breaks the given string into an array of grapheme clusters
|
---|
12 | * @param str {string}
|
---|
13 | * @returns {string[]}
|
---|
14 | */
|
---|
15 | splitGraphemes(str: string): string[];
|
---|
16 | /**
|
---|
17 | * Returns an iterator of grapheme clusters in the given string
|
---|
18 | * @param str {string}
|
---|
19 | * @returns {GraphemerIterator}
|
---|
20 | */
|
---|
21 | iterateGraphemes(str: string): GraphemerIterator;
|
---|
22 | /**
|
---|
23 | * Returns the number of grapheme clusters in the given string
|
---|
24 | * @param str {string}
|
---|
25 | * @returns {number}
|
---|
26 | */
|
---|
27 | countGraphemes(str: string): number;
|
---|
28 | /**
|
---|
29 | * Given a Unicode code point, determines this symbol's grapheme break property
|
---|
30 | * @param code {number} Unicode code point
|
---|
31 | * @returns {number}
|
---|
32 | */
|
---|
33 | static getGraphemeBreakProperty(code: number): number;
|
---|
34 | /**
|
---|
35 | * Given a Unicode code point, returns if symbol is an extended pictographic or some other break
|
---|
36 | * @param code {number} Unicode code point
|
---|
37 | * @returns {number}
|
---|
38 | */
|
---|
39 | static getEmojiProperty(code: number): number;
|
---|
40 | }
|
---|
41 | //# sourceMappingURL=Graphemer.d.ts.map |
---|
Note:
See
TracBrowser
for help on using the repository browser.