pub fn needs_encoded(value: &str) -> boolExpand description
Returns true if the input string needs to be encoded to CESU-8.
§Examples
let one = "E";
assert_eq!(one.len(), 1);
assert!(!simd_cesu8::needs_encoded(one));
let two = "ȅ";
assert_eq!(two.len(), 2);
assert!(!simd_cesu8::needs_encoded(two));
let three = "€";
assert_eq!(three.len(), 3);
assert!(!simd_cesu8::needs_encoded(three));
let four = "𐐀";
assert_eq!(four.len(), 4);
assert!(simd_cesu8::needs_encoded(four));