Lines Matching refs:word
345 word: &[u16],
349 for i in 0..word.len() {
350 let c = word[i] as u32;
360 alpha_codes[word.len() + 1] = 0; // word termination
575 pub fn hyphenate(&self, word: &[u16], out: &mut [u8]) { in hyphenate()
576 let len: u32 = word.len().try_into().unwrap(); in hyphenate()
585 alphabet.lookup(&mut alpha_codes, word) in hyphenate()
600 self.hyphenate_with_no_pattern(word, out); in hyphenate()
624 fn get_hyph_type_for_arabic(word: &[u16], location: u32) -> HyphenationType { in get_hyph_type_for_arabic()
627 while i < word.len().try_into().unwrap() { in get_hyph_type_for_arabic()
628 join_type = getJoiningType(word[i as usize].into()); in get_hyph_type_for_arabic()
644 join_type = getJoiningType(word[i as usize].into()); in get_hyph_type_for_arabic()
665 fn hyphenate_with_no_pattern(&self, word: &[u16], out: &mut [u8]) { in hyphenate_with_no_pattern()
666 let word_len: u32 = word.len().try_into().unwrap(); in hyphenate_with_no_pattern()
669 let prev_char = word[i as usize - 1]; in hyphenate_with_no_pattern()
674 && getScript(word[i as usize].into()) == USCRIPT_LATIN in hyphenate_with_no_pattern()
686 if getScript(word[i as usize].into()) == USCRIPT_ARABIC { in hyphenate_with_no_pattern()
689 out[i as usize] = Self::get_hyph_type_for_arabic(word, i) as u8; in hyphenate_with_no_pattern()
692 Self::hyphenation_type_based_on_script(word[i as usize] as u32) as u8; in hyphenate_with_no_pattern()
697 && ((word[i as usize - 2] == 'l' as u16 && word[i as usize] == 'l' as u16) in hyphenate_with_no_pattern()
698 || (word[i as usize - 2] == 'L' as u16 && word[i as usize] == 'L' as u16)) in hyphenate_with_no_pattern()