UNPKG

asian-regexps

Version:
37 lines 2.55 kB
export declare const chineseRegStringExp = "[\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u3005\u3007\u3021-\u3029\u3038-\u303B\u3400-\u4DBF\u4E00-\u9FFF\uF900-\uFA6D\uFA70-\uFAD9]"; export declare const kanjiStringRegex = "[\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u3005\u3007\u3021-\u3029\u3038-\u303B\u3400-\u4DBF\u4E00-\u9FFF\uF900-\uFA6D\uFA70-\uFAD9]"; export declare const hiraganaStringRegex = "[\u3041-\u3096\u309D-\u309F]"; export declare const katakanaStringRegex = "[\u30A1-\u30FA\u30FD-\u30FF\u31F0-\u31FF\u32D0-\u32FE\u3300-\u3357\uFF66-\uFF6F\uFF71-\uFF9D]"; export declare const japaneseStringRegex: string; export declare const koreanStringRegex = "[\uAC00-\uD7AF]|[\u1100-\u11FF]|[\u3130-\u318F]|[\uA960-\uA97F]|[\uD7B0-\uD7FF]"; export declare const containsChineseRegex: RegExp; export declare const containsJapaneseRegex: RegExp; export declare const containsKanjiRegex: RegExp; export declare const containsHiraganaRegex: RegExp; export declare const containsKatakanaRegex: RegExp; export declare const containsKoreanRegex: RegExp; export declare const allChineseRegex: RegExp; export declare const allJapaneseRegex: RegExp; export declare const allKanjiRegex: RegExp; export declare const allHiraganaRegex: RegExp; export declare const allKatakanaRegex: RegExp; export declare const allKoreanRegex: RegExp; export declare function hasSomeChinese(input: string): boolean; export declare function hasSomeJapanese(input: string): boolean; export declare function hasSomeKanji(input: string): boolean; export declare function hasSomeHiragana(input: string): boolean; export declare function hasSomeKatakana(input: string): boolean; export declare function hasSomeKorean(input: string): boolean; export declare function isChineseCharacter(character: string): boolean; export declare function isJapaneseCharacter(character: string): boolean; export declare function isKanjiCharacter(character: string): boolean; export declare function isHiraganaCharacter(character: string): boolean; export declare function isKatakanaCharacter(character: string): boolean; export declare function isKoreanCharacter(character: string): boolean; export declare function isFullChinese(input: string): boolean; export declare function isFullJapanese(input: string): boolean; export declare function isFullKanji(input: string): boolean; export declare function isFullHiragana(input: string): boolean; export declare function isFullKatakana(input: string): boolean; export declare function isFullKorean(input: string): boolean; //# sourceMappingURL=index.d.ts.map