@uttori/data-tools
Version:
Tools for working with binary data.
47 lines • 1.64 kB
TypeScript
/**
* @typedef UttoriCharacterEncoding
* @type {object}
* @property {number} shiftjs Shift-JIS code as an integer.
* @property {number} unicode Unicode value as an integer.
* @property {string} string Unicode string representation.
* @property {string} ascii ASCII string representation.
* @property {string} name Unicode Name
*/
/**
* Shift JIS (Shift Japanese Industrial Standards, also SJIS, MIME name Shift_JIS, known as PCK in Solaris contexts) is a character encoding for the Japanese language, originally developed by a Japanese company called ASCII Corporation in conjunction with Microsoft and standardized as JIS X 0208 Appendix 1.
* Shift-JIS is also called MS Kanji, or DOS Kanji, and is a Microsoft standard (codepage 932).
* Shift-JIS is an 8-bit encoding with 1 to 2 bytes per character.
* @see {@link https://en.wikipedia.org/wiki/Shift_JIS|Shift-JIS}
* @type {Record<number, UttoriCharacterEncoding>}
*/
export const characterEncoding: Record<number, UttoriCharacterEncoding>;
export function parse(data: DataBuffer): string;
declare namespace _default {
export { characterEncoding };
export { parse };
}
export default _default;
export type UttoriCharacterEncoding = {
/**
* Shift-JIS code as an integer.
*/
shiftjs: number;
/**
* Unicode value as an integer.
*/
unicode: number;
/**
* Unicode string representation.
*/
string: string;
/**
* ASCII string representation.
*/
ascii: string;
/**
* Unicode Name
*/
name: string;
};
import DataBuffer from '../data-buffer.js';
//# sourceMappingURL=shift-jis.d.ts.map