[−][src]Crate sejong
Sejong Buffer
takes English letters(Byte
) that appears on standard
keyboard and convert them to corresponding Hangul Jamos as
in standard Korean 2-set keyboard. It can output complete Hangul
Syllables as a UTF-32 string. It also allows deletion by Hangul
Jamo.
Example
use sejong::{Buffer, Byte}; let mut buf = Buffer::default(); buf.put(Byte::NG as u8); buf.put(Byte::A as u8); buf.put(Byte::N as u8); buf.put(Byte::N as u8); buf.put(Byte::YEO as u8); buf.put(Byte::NG as u8); assert_eq!(buf.to_string(), "안녕"); buf.put(Byte::N as u8); assert_eq!(buf.to_string(), "안녕ㄴ"); buf.pop(); assert_eq!(buf.out(), "안녕"); assert_eq!(buf.out(), "");
Structs
Buffer | It is simply a vector of |
Enums
Byte | This is the intermediate representation of the Buffer input.
Its |
Functions
out | This is a simple wrapper for |
pop | This is a simple wrapper for |
put | This is a simple wrapper for |