Lines Matching refs:s
112 pub fn __write_string(&mut self, s: &str) { in __write_string()
114 self.__write_string_on_stack(s); in __write_string()
117 let str_to_print = self.__utf8_to_ascii(s); in __write_string()
123 pub fn __write_string_color(&self, fr_color: u32, bk_color: u32, s: &str) { in __write_string_color()
125 self.__write_string_on_stack(s); in __write_string_color()
129 let str_to_print = self.__utf8_to_ascii(s); in __write_string_color()
157 pub fn __utf8_to_ascii(&self, s: &str) -> Vec<u8> { in __utf8_to_ascii()
158 let mut ascii_str: Vec<u8> = Vec::with_capacity(s.len() + 1); in __utf8_to_ascii()
159 for byte in s.bytes() { in __utf8_to_ascii()
171 fn __write_string_on_stack(&self, s: &str) { in __write_string_on_stack()
172 let s_len = s.len(); in __write_string_on_stack()
176 for byte in s.bytes() { in __write_string_on_stack()
191 fn __write_string_color_on_stack(&self, fr_color: u32, bk_color: u32, s: &str) { in __write_string_color_on_stack()
192 let s_len = s.len(); in __write_string_color_on_stack()
196 for byte in s.bytes() { in __write_string_color_on_stack()
214 fn write_str(&mut self, s: &str) -> fmt::Result { in write_str()
215 self.__write_string(s); in write_str()