pub const fn required_java_len(str: &str) -> usize
Calculate the amount of bytes required to encode str in Java CESU-8.
str