Lines Matching refs:usize

210         let usize_offset = offset as usize;  in read_u32()
332 let offset = self.data.read_u32(offset) as usize; in read_offset_and_slice()
344 alpha_codes: &mut [u16; MAX_HYPHEN_SIZE as usize], in lookup() argument
382 let code = self.data.bytes[(offset - self.min_codepoint) as usize + 12] as u16; in get_at()
538 self.data.bytes[(self.pattern_offset + (self.entry & 0xfffff) + offset) as usize] in value_at()
583 let mut alpha_codes: [u16; MAX_HYPHEN_SIZE as usize] = [0; MAX_HYPHEN_SIZE as usize]; in hyphenate()
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()
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()
678 out[i as usize] = HyphenationType::BreakAndInsertHyphenAtNextLine as u8; in hyphenate_with_no_pattern()
680 out[i as usize] = HyphenationType::BreakAndDontInsertHyphen as u8; 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()
691 out[i as usize] = 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()
703 out[i as usize] = HyphenationType::BreakAndReplaceWithHyphen as u8; in hyphenate_with_no_pattern()
705 out[i as usize] = HyphenationType::DontBreak as u8; in hyphenate_with_no_pattern()
713 codes: [u16; MAX_HYPHEN_SIZE as usize], in hyphenate_from_codes() argument
730 let c: u32 = codes[j as usize].into();
753 out[(offset + k) as usize] =
754 cmp::max(out[(offset + k) as usize], pat_entry.value_at(k));
762 for r in out.iter_mut().take(max_offset as usize).skip(self.min_prefix as usize) {