|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
610 bytes
|
| Line | |
|---|
| 1 | /**
|
|---|
| 2 | * GraphemerIterator
|
|---|
| 3 | *
|
|---|
| 4 | * Takes a string and a "BreakHandler" method during initialisation
|
|---|
| 5 | * and creates an iterable object that returns individual graphemes.
|
|---|
| 6 | *
|
|---|
| 7 | * @param str {string}
|
|---|
| 8 | * @return GraphemerIterator
|
|---|
| 9 | */
|
|---|
| 10 | declare class GraphemerIterator implements Iterator<string> {
|
|---|
| 11 | private _index;
|
|---|
| 12 | private _str;
|
|---|
| 13 | private _nextBreak;
|
|---|
| 14 | constructor(str: string, nextBreak: (str: string, index: number) => number);
|
|---|
| 15 | [Symbol.iterator](): this;
|
|---|
| 16 | next(): {
|
|---|
| 17 | value: string;
|
|---|
| 18 | done: boolean;
|
|---|
| 19 | };
|
|---|
| 20 | }
|
|---|
| 21 | export default GraphemerIterator;
|
|---|
| 22 | //# sourceMappingURL=GraphemerIterator.d.ts.map |
|---|
Note:
See
TracBrowser
for help on using the repository browser.