Optionalescaped_string: stringA string, may be null
Optionalescaped_string_end: stringPointer to end of escaped_string, may be null
Optionalillegal_characters: stringAn optional string of illegal characters not to be allowed, may be null
an unescaped version of escaped_string, or null on error. The returned string should be freed when no longer needed. As a special case if null is given for escaped_string, this function will return null.
Unescapes a segment of an escaped string.
If any of the characters in
illegal_charactersor the NUL character appears as an escaped character inescaped_string, then that is an error andnullwill be returned. This is useful if you want to avoid for instance having a slash being expanded in an escaped path element, which might confuse pathname handling.Note:
NULbyte is not accepted in the output, in contrast tog_uri_unescape_bytes().