pub fn send_string(&self, text: String, row: u32) {
        let re_char: Regex = Regex::new(r"^\\cg:([0-7])").unwrap();
        let mut message: Vec<u8> = Vec::new();
        let col = self.cols;
        let row = row % self.rows;

        // TODO: implement check for custom characters

        for i in text.chars() {
            message.push(i as u8);
        }

        message.truncate(col as usize);

        self.select_row(row);
        self.write(message);
    }
/// Parses a String and and outputs it to the given row
Parses a String and and outputs it to the given row
Parses a String and and outputs it to the given row
pub fn send_string(&self, text: String, row: u32) {
        let re_char: Regex = Regex::new(r"^\\cg:([0-7])").unwrap();
        let mut message: Vec<u8> = Vec::new();
        let col = self.cols;
        let row = row % self.rows;
        // TODO: implement check for custom characters
        for i in text.chars() {
            message.push(i as u8);
        }
        message.truncate(col as usize);
        self.select_row(row);
        self.write(message);
    }
pub fn send_string ( & self , text : String , row : u32 ) { let re_char : Regex = Regex :: new ( r"^\\cg:([0-7])" ) . unwrap ( ) ; let mut message : Vec < u8 > = Vec :: new ( ) ; let col = self . cols ; let row = row % self . rows ; // TODO: implement check for custom characters for i in text . chars ( ) { message . push ( i as u8 ) ; } message . truncate ( col as usize ) ; self . select_row ( row ) ; self . write ( message ) ; }
Parses a String and and outputs it to the given row
Parses a String and and outputs it to the given row
&self
text
String
row
u32
&self
text
String
row
u32