Skip to main content

pm_string_query_local

Function pm_string_query_local 

Source
pub unsafe extern "C" fn pm_string_query_local(
    source: *const u8,
    length: usize,
    encoding_name: *const c_char,
) -> pm_string_query_t
Expand description

Check that the slice is a valid local variable name.

@param source The source to check. @param length The length of the source. @param encoding_name The name of the encoding of the source. @returns PM_STRING_QUERY_TRUE if the query is true, PM_STRING_QUERY_FALSE if the query is false, and PM_STRING_QUERY_ERROR if the encoding was invalid.