Function kelp::hira2hkata
[−]
[src]
pub fn hira2hkata(text: &str, option: ConvOption) -> String
Convert from hiragana to half-width katakana
Example
use kelp::conv_option::ConvOption; use kelp::hira2hkata; let option = ConvOption::build().finalize(); let converted = hira2hkata("あいうえお", option); assert_eq!("アイウエオ", converted); let option = ConvOption::build().ignore("がご").finalize(); let converted = hira2hkata("がぎぐげご", option); assert_eq!("がギグゲご", converted);