Function encoding_c::encoding_iso_2022_jp_ascii_valid_up_to [] [src]

#[no_mangle]
pub unsafe extern fn encoding_iso_2022_jp_ascii_valid_up_to(buffer: *const u8,
                                                            buffer_len: usize)
                                                            -> usize

Validates ISO-2022-JP ASCII-state data.

Returns the index of the first byte that makes the input not representable in the ASCII state of ISO-2022-JP or buffer_len if buffer is entirely representable in the ASCII state of ISO-2022-JP.

Undefined behavior

UB ensues if buffer and buffer_len don't designate a valid memory block.