URI.unescapeSegment

Unescapes a segment of an escaped string. If any of the characters in illegal_characters or the character zero appears as an escaped character in escaped_string then that is an error and NULL will be returned. This is useful it you want to avoid for instance having a slash being expanded in an escaped path element, which might confuse pathname handling. Since 2.16

class URI
static
string
unescapeSegment

Parameters

escapedString string

a string.

escapedStringEnd string

a string.

illegalCharacters string

an optional string of illegal characters not to be allowed.

Return Value

Type: string

an unescaped version of escaped_string or NULL on error. The returned string should be freed when no longer needed.

Meta