jtc-utils
Version:
Utilities for Japanese Traditional Companies
23 lines • 961 B
TypeScript
import type { Charset, CharsetDecodeOptions, CharsetDecoder, CharsetDecoderOptions, CharsetEncodeOptions, CharsetEncoder, CharsetEncoderOptions } from "./charset.ts";
declare class Cp939Charset implements Charset {
get name(): string;
createDecoder(options?: CharsetDecoderOptions): Cp939Decoder;
createEncoder(options?: CharsetEncoderOptions): Cp939Encoder;
isUnicode(): boolean;
isEbcdic(): boolean;
}
declare class Cp939Decoder implements CharsetDecoder {
private fatal;
private state?;
constructor(options?: CharsetDecoderOptions);
decode(input: Uint8Array, options?: CharsetDecodeOptions): string;
}
declare class Cp939Encoder implements CharsetEncoder {
private fatal;
constructor(options?: CharsetEncoderOptions);
canEncode(str: string): boolean;
encode(str: string, options?: CharsetEncodeOptions): Uint8Array;
}
export declare const cp939: Cp939Charset;
export {};
//# sourceMappingURL=cp939.d.ts.map