char-encoding-detector
Version:
Character encoding detector
28 lines (27 loc) • 801 B
TypeScript
import { Context, Recognizer, Match } from '../type';
/**
* This class matches UTF-16 and UTF-32, both big- and little-endian. The
* BOM will be used if it is present.
*/
export declare class UTF_16BE implements Recognizer {
name(): string;
match(det: Context): Match;
}
export declare class UTF_16LE implements Recognizer {
name(): string;
match(det: Context): Match;
}
declare class UTF_32 implements Recognizer {
name(): string;
getChar(input: any, number: any): number;
match(det: Context): Match;
}
export declare class UTF_32BE extends UTF_32 {
name(): string;
getChar(input: any, index: any): number;
}
export declare class UTF_32LE extends UTF_32 {
name(): string;
getChar(input: any, index: any): number;
}
export {};