Skip to main content

duckdb_valid_utf8_check

Function duckdb_valid_utf8_check 

Source
pub unsafe extern "C" fn duckdb_valid_utf8_check(
    str_: *const c_char,
    len: idx_t,
) -> duckdb_error_data
Expand description

Checks if a string is valid UTF-8.

@param str The string to check @param len The length of the string (in bytes) @return nullptr if the string is valid UTF-8. Otherwise, a duckdb_error_data containing error information. Must be destroyed with duckdb_destroy_error_data.