[][src]Crate hangeul

Re-exports

pub use self::is_jaeum as is_consonant;
pub use self::is_moeum as is_vowel;
pub use self::get_choseong as get_lead;
pub use self::get_jungseong as get_middle;
pub use self::get_jongseong as get_tail;
pub use self::has_jongseong as has_tail;
pub use self::is_choseong as is_lead;
pub use self::is_jongseong as is_tail;
pub use self::ends_with_jongseong as ends_in_consonant;

Modules

errors
models

Functions

compose_char

Attempts to compose a Hangeul character (in the Hangeul Syllable unicode range, AC00D7A3). See Hangeul Syllables.

decompose

Attempts to decompose a string of Hangeul characters. See decompose_char.

decompose_char

Attempts to decompose a char. Errors if the first and second glyphs aren't valid Korean jamo. See Compatibility Jamo.

ends_with_jongseong

Checks if a str's last char ends in a consonant or not.

get_choseong

Wrapper around Choseong to get the first/lead character from a Hangeul syllable. See models::Choseong.

get_jongseong

Wrapper around Jongseong to get the bottom/tail character from a Hangeul syllable. See models::Jongseong.

get_jungseong

Wrapper around Jungseong to get the middle/vowel character from a Hangeul syllable. See models::Jungseong.

has_jongseong

Check if the syllable has a tail, or jongseong (종성). use hangeul::has_jongseong; // has_jongseong

is_choseong

Checks if a char is a lead jamo, or choseong (중성).

is_compat_jamo

Returns true from 0x3131 to 0x318E. See Compatibility Jamo.

is_hangeul

Checks if a u32 is a (composable) Hangeul Syllable or Jamo. Archaic Korean is not supported at this time. See:

is_jaeum

Checks if the u32 is a consonant, or jaeum (자음). Checks both Jamo and Compatibility Jamo unicode blocks.

is_jamo

Returns true from 0x1100 to 0x11FF. See Hangeul Jamo.

is_jongseong

Checks if a char is a tail jamo, or jongseong (종성).

is_jungseong

Checks if a char is a middle/vowel jamo, or jungseong (중성).

is_moeum

Checks if the u32 is a vowel, or moeum (모음). Checks both Jamo and Compatibility Jamo unicode blocks.

is_syllable

Check if the u32 is a finished/composed Hangeul syllable. Returns true for the 0xAC00 to 0xD7A3 range.

to_hangeul_u32

Casts a char to u32. Errors if said u32 falls outside of the Hangeul Syllable unicode range. See is_hangeul.