pub fn u8_chars(v: Vec<u8>) -> Vec<char>
Expand description
Vec<u8>
to Vec<char>
A mnemonic node
Example:
//SQLite format 3
use jay_lib::fns::fn_str::u8_chars;
let codepoint_array: Vec<u8> = "\n\0\rtest\00x08".into();
let codepoint_array = vec![23, 33, 43, 53, 63, 74, 84, 192, 241];
let codepoints: Vec<char> = codepoint_array.into_iter().map(char::from).collect();
let codepoint_array = b"SQLite format 3"; // + b'\0';
let mut vc = codepoint_array.to_vec();
vc.push(b'\0');
let codepoints =u8_chars(vc);
println!("{:?},{}", codepoints, codepoints.len());