1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
const CHAR_DEFINITION_DATA: &'static [u8] = include_bytes!("../dict/char_def.bin"); static CONNECTION_DATA: &'static [u8] = include_bytes!("../dict/matrix.mtx"); const IPADIC_DATA: &'static [u8] = include_bytes!("../dict/dict.fst"); const IPADIC_VALS: &'static [u8] = include_bytes!("../dict/dict.vals"); const DICTIONARY_DATA: &'static [u8] = include_bytes!("../dict/dict.fst"); const UNKNOWN_DATA: &'static [u8] = include_bytes!("../dict/unk.bin"); const WORDS_DATA: &'static [u8] = include_bytes!("../dict/dict.words"); const WORDS_IDX_DATA: &'static [u8] = include_bytes!("../dict/dict.wordsidx"); pub fn char_def() -> &'static [u8] { CHAR_DEFINITION_DATA } pub fn connection_data() -> &'static [u8] { CONNECTION_DATA } pub fn ipadic_data() -> &'static [u8] { IPADIC_DATA } pub fn ipadic_vals() -> &'static [u8] { IPADIC_VALS } pub fn system_dict() -> &'static [u8] { DICTIONARY_DATA } pub fn unknown_dict() -> &'static [u8] { UNKNOWN_DATA } pub fn word_data() -> &'static [u8] { WORDS_DATA } pub fn word_index_data() -> &'static [u8] { WORDS_IDX_DATA }