alpm_mtree::path_decoder

Function unicode_char

Source
fn unicode_char(input: &mut &str) -> ModalResult<String>
Expand description

Parse and decode a unicode char that’s encoded as octal triplets.

For example, 🌠 translates to \360\237\214\240, which is equivalent to 0xf0 0x9f 0x8c 0xa0 hex encoding.

Each triplet represents a single UTF-8 byte segment, check octal_triplet for more details.