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.
28 lines
880 B
TypeScript
28 lines
880 B
TypeScript
3 weeks ago
|
import type { Context, Recogniser } from '.';
|
||
|
import { type Match, type EncodingName } from '../match';
|
||
|
export declare class UTF_16BE implements Recogniser {
|
||
|
name(): EncodingName;
|
||
|
match(det: Context): Match | null;
|
||
|
}
|
||
|
export declare class UTF_16LE implements Recogniser {
|
||
|
name(): EncodingName;
|
||
|
match(det: Context): Match | null;
|
||
|
}
|
||
|
interface WithGetChar {
|
||
|
getChar(input: Uint8Array, index: number): number;
|
||
|
}
|
||
|
declare class UTF_32 implements Recogniser, WithGetChar {
|
||
|
name(): EncodingName;
|
||
|
getChar(_input: Uint8Array, _index: number): number;
|
||
|
match(det: Context): Match | null;
|
||
|
}
|
||
|
export declare class UTF_32BE extends UTF_32 {
|
||
|
name(): EncodingName;
|
||
|
getChar(input: Uint8Array, index: number): number;
|
||
|
}
|
||
|
export declare class UTF_32LE extends UTF_32 {
|
||
|
name(): EncodingName;
|
||
|
getChar(input: Uint8Array, index: number): number;
|
||
|
}
|
||
|
export {};
|