uriEscapeExA

Function uriEscapeExA 

Source
pub unsafe extern "C" fn uriEscapeExA(
    inFirst: *const c_char,
    inAfterLast: *const c_char,
    out: *mut c_char,
    spaceToPlus: UriBool,
    normalizeBreaks: UriBool,
) -> *mut c_char
Expand description

Percent-encodes all unreserved characters from the input string and writes the encoded version to the output string. Be sure to allocate 3 times the space of the input buffer for the output buffer for normalizeBreaks == URI_FALSE and 6 times the space for normalizeBreaks == URI_TRUE (since e.g. “\x0d” becomes “%0D%0A” in that case)

@param inFirst IN: Pointer to first character of the input text @param inAfterLast IN: Pointer after the last character of the input text @param out OUT: Encoded text destination @param spaceToPlus IN: Whether to convert ’ ’ to ‘+’ or not @param normalizeBreaks IN: Whether to convert CR and LF to CR-LF or not. @return Position of terminator in output string

@see uriEscapeA @see uriUnescapeInPlaceExA @since 0.5.2