pub fn generate_files(src_dir: &Path) -> Result<(), Box<dyn Error>> {
    let mut sorted_names = fst_generator::Names::new();

    ascii::write_ascii_name_data(&src_dir.join("ascii"), &mut sorted_names);

    unicode::read_names(&mut sorted_names, unicode::name_aliases())?;
    unicode::read_names(&mut sorted_names, unicode::unicode_data())?;
    unicode::write_name_data(&sorted_names, &src_dir.join("unicode/"))?;
    Ok(())
}
/// Runs the code generator and writes files.
Runs the code generator and writes files.
Runs the code generator and writes files .
pub fn generate_files(src_dir: &Path) -> Result<(), Box<dyn Error>> {
    let mut sorted_names = fst_generator::Names::new();
    ascii::write_ascii_name_data(&src_dir.join("ascii"), &mut sorted_names);
    unicode::read_names(&mut sorted_names, unicode::name_aliases())?;
    unicode::read_names(&mut sorted_names, unicode::unicode_data())?;
    unicode::write_name_data(&sorted_names, &src_dir.join("unicode/"))?;
    Ok(())
}
pub fn generate_files ( src_dir : & Path ) -> Result < ( ) , Box < dyn Error > > { let mut sorted_names = fst_generator :: Names :: new ( ) ; ascii :: write_ascii_name_data ( & src_dir . join ( " " ) , & mut sorted_names ) ; unicode :: read_names ( & mut sorted_names , unicode :: name_aliases ( ) ) ? ; unicode :: read_names ( & mut sorted_names , unicode :: unicode_data ( ) ) ? ; unicode :: write_name_data ( & sorted_names , & src_dir . join ( " " ) ) ? ; Ok ( ( ) ) }
Runs the code generator and writes files.
Runs the code generator and writes files .
src_dir
&Path