12 lines
376 B
TypeScript
12 lines
376 B
TypeScript
export type CodePointReader = {
|
|
representationStart: number;
|
|
representationEnd: number;
|
|
cursor: number;
|
|
codePointSource: Array<number>;
|
|
representationIndices: Array<number>;
|
|
source: string;
|
|
advanceCodePoint(n?: number): void;
|
|
readCodePoint(n?: number): number | false;
|
|
unreadCodePoint(n?: number): void;
|
|
resetRepresentation(): void;
|
|
};
|