ucd_util

Function hangul_name

source
pub fn hangul_name<'a>(table: &'a [(u32, &'a str)], cp: u32) -> Option<String>
Expand description

Return the character name of the given precomposed Hangul codepoint.

If the given codepoint does not correspond to a precomposed Hangul codepoint in the inclusive range AC00..D7A3, then this returns None.

This implements the algorithms described in Unicode 3.12 and Unicode 4.8.

The table given should be a map from codepoint to the corresponding Jamo short name for that codepoint. If you’re using ucd-generate, then the table can be generated via the jamo-short-name sub-command.