Lines Matching refs:u8
88 const U_JT_NON_JOINING: u8 = 0;
89 const U_JT_DUAL_JOINING: u8 = 1;
90 const U_JT_RIGHT_JOINING: u8 = 2;
91 const U_JT_LEFT_JOINING: u8 = 3;
92 const U_JT_JOIN_CAUSING: u8 = 4;
93 const U_JT_TRANSPARENT: u8 = 5;
98 const USCRIPT_LATIN: u8 = 0;
99 const USCRIPT_ARABIC: u8 = 1;
100 const USCRIPT_KANNADA: u8 = 2;
101 const USCRIPT_MALAYALAM: u8 = 3;
102 const USCRIPT_TAMIL: u8 = 4;
103 const USCRIPT_TELUGU: u8 = 5;
104 const USCRIPT_ARMENIAN: u8 = 6;
105 const USCRIPT_CANADIAN_ABORIGINAL: u8 = 7;
113 #[repr(u8)]
141 #[repr(u8)]
157 bytes: &'a [u8],
205 pub const fn new(bytes: &'a [u8]) -> Self { in new()
213 .map(|x: &[u8]| u32::from_le_bytes(x.try_into().unwrap())) in read_u32()
306 pub const fn new(bytes: &'a [u8]) -> Self { in new()
331 fn read_offset_and_slice(&self, offset: u32) -> &'a [u8] { in read_offset_and_slice() argument
368 pub fn new(bytes: &'a [u8]) -> Self { in new()
395 pub fn new(bytes: &'a [u8]) -> Self { in new()
457 pub const fn new(bytes: &'a [u8]) -> Self { in new()
506 pub fn new(bytes: &'a [u8]) -> Self { in new()
522 pub const fn new(bytes: &'a [u8], pattern_offset: u32, entry: u32) -> Self { in new() argument
537 pub fn value_at(&self, offset: u32) -> u8 { in value_at() argument
544 data: &'static [u8],
552 pub fn new(data: &'static [u8], min_prefix: u32, min_suffix: u32, locale: &str) -> Self { in new() argument
575 pub fn hyphenate(&self, word: &[u16], out: &mut [u8]) { in hyphenate() argument
626 let mut join_type: u8 = U_JT_NON_JOINING; in get_hyph_type_for_arabic()
665 fn hyphenate_with_no_pattern(&self, word: &[u16], out: &mut [u8]) { in hyphenate_with_no_pattern() argument
667 out[0] = HyphenationType::DontBreak as u8; 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()
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()
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()
716 out: &mut [u8], argument
763 *r = if *r & 1 != 0 { hyphen_value as u8 } else { HyphenationType::DontBreak as u8 };