main
Last change
on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
610 bytes
|
Rev | Line | |
---|
[d565449] | 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.