chardet/src/encoding/index.ts

17 lines
335 B
TypeScript
Raw Normal View History

import { Match } from '../match';
export interface Recogniser {
match(input: Context): Match | null;
name(input?: Context): string;
2021-10-19 10:21:29 +00:00
language?(): string | undefined;
}
export interface Context {
2021-10-19 09:27:41 +00:00
byteStats: number[];
c1Bytes: boolean;
rawInput: Uint8Array;
rawLen: number;
inputBytes: Uint8Array;
inputLen: number;
}