2019-07-28 01:02:24 +03:00
|
|
|
import { BytesLike } from "@ethersproject/bytes";
|
|
|
|
export declare enum UnicodeNormalizationForm {
|
|
|
|
current = "",
|
|
|
|
NFC = "NFC",
|
|
|
|
NFD = "NFD",
|
|
|
|
NFKC = "NFKC",
|
|
|
|
NFKD = "NFKD"
|
|
|
|
}
|
|
|
|
export declare function toUtf8Bytes(str: string, form?: UnicodeNormalizationForm): Uint8Array;
|
|
|
|
export declare function _toEscapedUtf8String(bytes: BytesLike, ignoreErrors?: boolean): string;
|
2019-08-02 09:10:58 +03:00
|
|
|
export declare function _toUtf8String(codePoints: Array<number>): string;
|
2019-07-28 01:02:24 +03:00
|
|
|
export declare function toUtf8String(bytes: BytesLike, ignoreErrors?: boolean): string;
|
|
|
|
export declare function toUtf8CodePoints(str: string, form?: UnicodeNormalizationForm): Array<number>;
|