You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
376 B
TypeScript
15 lines
376 B
TypeScript
3 weeks ago
|
import type { EncodingName, Match } from '../match';
|
||
|
export interface Recogniser {
|
||
|
match(input: Context): Match | null;
|
||
|
name(input?: Context): EncodingName;
|
||
|
language?(): string | undefined;
|
||
|
}
|
||
|
export interface Context {
|
||
|
byteStats: number[];
|
||
|
c1Bytes: boolean;
|
||
|
rawInput: Uint8Array;
|
||
|
rawLen: number;
|
||
|
inputBytes: Uint8Array;
|
||
|
inputLen: number;
|
||
|
}
|