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.
76 lines
2.0 KiB
TypeScript
76 lines
2.0 KiB
TypeScript
3 weeks ago
|
import type { Context, Recogniser } from '.';
|
||
|
import { type EncodingName, type Match } from '../match';
|
||
|
declare class NGramsPlusLang {
|
||
|
fLang: string;
|
||
|
fNGrams: number[];
|
||
|
constructor(la: string, ng: number[]);
|
||
|
}
|
||
|
declare class sbcs implements Recogniser {
|
||
|
spaceChar: number;
|
||
|
private nGramLang?;
|
||
|
ngrams(): NGramsPlusLang[] | number[];
|
||
|
byteMap(): number[];
|
||
|
name(_input: Context): EncodingName;
|
||
|
language(): string | undefined;
|
||
|
match(det: Context): Match | null;
|
||
|
}
|
||
|
export declare class ISO_8859_1 extends sbcs {
|
||
|
byteMap(): number[];
|
||
|
ngrams(): NGramsPlusLang[];
|
||
|
name(input: Context): EncodingName;
|
||
|
}
|
||
|
export declare class ISO_8859_2 extends sbcs {
|
||
|
byteMap(): number[];
|
||
|
ngrams(): NGramsPlusLang[];
|
||
|
name(det: Context): EncodingName;
|
||
|
}
|
||
|
export declare class ISO_8859_5 extends sbcs {
|
||
|
byteMap(): number[];
|
||
|
ngrams(): number[];
|
||
|
name(): EncodingName;
|
||
|
language(): string;
|
||
|
}
|
||
|
export declare class ISO_8859_6 extends sbcs {
|
||
|
byteMap(): number[];
|
||
|
ngrams(): number[];
|
||
|
name(): EncodingName;
|
||
|
language(): string;
|
||
|
}
|
||
|
export declare class ISO_8859_7 extends sbcs {
|
||
|
byteMap(): number[];
|
||
|
ngrams(): number[];
|
||
|
name(det: Context): EncodingName;
|
||
|
language(): string;
|
||
|
}
|
||
|
export declare class ISO_8859_8 extends sbcs {
|
||
|
byteMap(): number[];
|
||
|
ngrams(): NGramsPlusLang[];
|
||
|
name(det: Context): EncodingName;
|
||
|
language(): string;
|
||
|
}
|
||
|
export declare class ISO_8859_9 extends sbcs {
|
||
|
byteMap(): number[];
|
||
|
ngrams(): number[];
|
||
|
name(det: Context): EncodingName;
|
||
|
language(): string;
|
||
|
}
|
||
|
export declare class windows_1251 extends sbcs {
|
||
|
byteMap(): number[];
|
||
|
ngrams(): number[];
|
||
|
name(): EncodingName;
|
||
|
language(): string;
|
||
|
}
|
||
|
export declare class windows_1256 extends sbcs {
|
||
|
byteMap(): number[];
|
||
|
ngrams(): number[];
|
||
|
name(): EncodingName;
|
||
|
language(): string;
|
||
|
}
|
||
|
export declare class KOI8_R extends sbcs {
|
||
|
byteMap(): number[];
|
||
|
ngrams(): number[];
|
||
|
name(): EncodingName;
|
||
|
language(): string;
|
||
|
}
|
||
|
export {};
|