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,
    version: *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. @param version The version of Ruby to answer for, as pm_options_version_set reads it, such as “3.4” or “latest”. NULL is the latest version. @returns PM_STRING_QUERY_TRUE if the query is true, PM_STRING_QUERY_FALSE if the query is false, PM_STRING_QUERY_ERROR if the encoding was invalid, and PM_STRING_QUERY_ERROR_VERSION if the version was invalid.