extern crate uroman;
use uroman::{RomFormat, Uroman, rom_format};
fn main() {
let uroman = Uroman::new();
let s = "こんにちは、ユーロマン!";
let lcode = None;
let result = uroman
.romanize_string::<rom_format::Str>(s, lcode)
.to_output_string();
let result_f = uroman.romanize_with_format(
s,
lcode,
None, ).to_output_string();
assert_eq!(result, result_f.unwrap());
println!("{result}");
let result = uroman
.romanize_string::<rom_format::Lattice>(s, lcode)
.to_output_string()
.unwrap();
let result_f = uroman
.romanize_with_format(s, lcode, Some(RomFormat::Lattice))
.to_output_string()
.unwrap();
assert_eq!(result, result_f);
println!("{result}");
}