hangulx
Version:
Providing various utilities for Hangul
63 lines (62 loc) • 2.73 kB
TypeScript
export declare class Consonant {
static disassembleCompound(str: string): string[];
static disassembleCompoundToString(str: string): string;
static disassembleDouble(str: string): string[];
static disassembleDoubleToString(str: string): string;
/**
* 주어진 문자 코드가 자음인지 확인합니다.
*
* Checks if the given char code is a consonant.
*
* @param charCode - 검사할 단일 문자
* @param charCode - The single character to check
* @returns 자음 문자 코드면 true, 아니면 false
* @returns true if the character is a consonant char code, otherwise false
*/
static isConsonantCharCode(charCode: number): boolean;
/**
* 주어진 문자가 자음인지 확인합니다.
*
* Checks if the given character is a consonant.
*
* @param char - 검사할 단일 문자
* @param char - The single character to check
* @returns 자음이면 true, 아니면 false
* @returns true if the character is a consonant, otherwise false
*/
static isConsonant(char: string): boolean;
/**
* 주어진 문자열의 모든 문자가 자음인지 확인합니다.
*
* Checks if all characters in the given string are consonants.
*
* @param str - 검사할 문자열
* @param str - The string to check
* @returns 문자열의 모든 문자가 자음이면 true, 아니면 false
* @returns true if all characters in the string are consonants, otherwise false
*/
static isConsonantAll(str: string): boolean;
/**
* 주어진 문자열에 하나 이상의 자음이 포함되어 있는지 확인합니다.
*
* Checks if the given string contains at least one consonant.
*
* @param str - 검사할 문자열
* @param str - The string to check
* @returns 자음이 하나라도 있으면 true, 없으면 false
* @returns true if there is at least one consonant, otherwise false
*/
static hasConsonant(str: string): boolean;
static isBasicConsonantCharCode(charCode: number): boolean;
static isBasicConsonant(char: string): boolean;
static isBasicConsonantAll(str: string): boolean;
static hasBasicConsonant(str: string): boolean;
static isDoubleConsonantCharCode(charCode: number): boolean;
static isDoubleConsonant(char: string): boolean;
static isDoubleConsonantAll(str: string): boolean;
static hasDoubleConsonant(str: string): boolean;
static isClusterConsonantCharCode(charCode: number): boolean;
static isClusterConsonant(char: string): boolean;
static isClusterConsonantAll(str: string): boolean;
static hasClusterConsonant(str: string): boolean;
}