用工小程序前端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
610 B

7 months ago
  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