print in main, doc and add text jap
This commit is contained in:
@@ -132,6 +132,8 @@ fn string_translate(file: &mut File) -> String {
|
||||
let chars_bin = read_n_bytes(file, len_chars);
|
||||
let chars_str = String::from_utf8(chars_bin).unwrap();
|
||||
let root = read_tree(&tree_str, &chars_str.chars().collect());
|
||||
//let map = tree_to_map(&mut root, true);
|
||||
//eprintln!("map = {:?}", map);
|
||||
let _ = file.read_exact(&mut buffer);
|
||||
let len_body = u32::from_be_bytes(buffer);
|
||||
translate_bin_char(file, root, len_body)
|
||||
|
||||
Reference in New Issue
Block a user