|
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:
1.2 KB
|
| Line | |
|---|
| 1 | declare class GraphemerHelper {
|
|---|
| 2 | /**
|
|---|
| 3 | * Check if the the character at the position {pos} of the string is surrogate
|
|---|
| 4 | * @param str {string}
|
|---|
| 5 | * @param pos {number}
|
|---|
| 6 | * @returns {boolean}
|
|---|
| 7 | */
|
|---|
| 8 | static isSurrogate(str: string, pos: number): boolean;
|
|---|
| 9 | /**
|
|---|
| 10 | * The String.prototype.codePointAt polyfill
|
|---|
| 11 | * Private function, gets a Unicode code point from a JavaScript UTF-16 string
|
|---|
| 12 | * handling surrogate pairs appropriately
|
|---|
| 13 | * @param str {string}
|
|---|
| 14 | * @param idx {number}
|
|---|
| 15 | * @returns {number}
|
|---|
| 16 | */
|
|---|
| 17 | static codePointAt(str: string, idx: number): number;
|
|---|
| 18 | /**
|
|---|
| 19 | * Private function, returns whether a break is allowed between the two given grapheme breaking classes
|
|---|
| 20 | * Implemented the UAX #29 3.1.1 Grapheme Cluster Boundary Rules on extended grapheme clusters
|
|---|
| 21 | * @param start {number}
|
|---|
| 22 | * @param mid {Array<number>}
|
|---|
| 23 | * @param end {number}
|
|---|
| 24 | * @param startEmoji {number}
|
|---|
| 25 | * @param midEmoji {Array<number>}
|
|---|
| 26 | * @param endEmoji {number}
|
|---|
| 27 | * @returns {number}
|
|---|
| 28 | */
|
|---|
| 29 | static shouldBreak(start: number, mid: number[], end: number, startEmoji: number, midEmoji: number[], endEmoji: number): number;
|
|---|
| 30 | }
|
|---|
| 31 | export default GraphemerHelper;
|
|---|
| 32 | //# sourceMappingURL=GraphemerHelper.d.ts.map |
|---|
Note:
See
TracBrowser
for help on using the repository browser.