pub fn check_length( text: &str, min: usize, max: usize, ) -> Result<(), ReasonCode>
G2 with the given bounds (Unicode scalar values).