Skip to main content

tw5-typed / modules/utils/transliterate

Module: modules/utils/transliterate

Table of contents

Variables

Functions

Variables

transliterationPairs

Const transliterationPairs: Record<string, string>

An object containing pairs of characters to be transliterated.

Description

包含要转换的字符对的对象。

Defined in

src/modules/utils/transliterate.d.ts:6

Functions

transliterate

transliterate(string_): string

Transliterates a string to ASCII.

Parameters

NameType
string_string

Returns

string

The transliterated string.

Description

将字符串转换为 ASCII。

Defined in

src/modules/utils/transliterate.d.ts:14


transliterateToSafeASCII

transliterateToSafeASCII(string_): string

Transliterates a string to safe ASCII.

Parameters

NameType
string_string

Returns

string

The transliterated string.

Description

将字符串转换为安全的 ASCII。

Defined in

src/modules/utils/transliterate.d.ts:22