Function pact_ffi::mock_server::pactffi_generate_regex_value

source ·
#[no_mangle]
pub unsafe extern "C" fn pactffi_generate_regex_value(
    regex: *const c_char
) -> StringResult
Expand description

Generates an example string based on the provided regex. NOTE: The memory for the returned string needs to be freed with the pactffi_string_delete function.

§Safety

The regex pointer must be a valid pointer to a NULL-terminated string. Invalid pointers will result in undefined behaviour.