Function core::str::utf8_first_byte [] [src]

fn utf8_first_byte(byte: u8, width: u32) -> u32

Return the initial codepoint accumulator for the first byte. The first byte is special, only want bottom 5 bits for width 2, 4 bits for width 3, and 3 bits for width 4.