|
|
LONGCHAR Decode (character)
|
/** Attempts to decode a previously percent-encoded string.
@param longchar The string to decode
@return longchar A decoded URL
@throws AppError If the encoding is malformed */
|
|
|
LONGCHAR Decode (character, character)
|
/** Attempts to decode a previously percent-encoded string.
@param longchar The string to decode
@param character The target codepage to encode into. Defaults to UTF-8
@return longchar A decoded string. This is longchar since it may contain non-ASCII or Unicode characters.
@throws AppError If the encoding is malformed */
|
|
|
CHARACTER Encode (longchar)
|
/* Encodes a string per the input flags. Characters in the ASCII range (0-127) are
encoded per the flags passed in; all other characters are always %-encoded.
@param longchar The string to encode. This is longchar since it can handle unicode data even when the session can't.
We do not expect this to contain GB's of data.
@param logical[128] An array of flags indicating which ASCII chars to encode or not. Characters to encode must have
a value of TRUE
@return character The encoded string. Return value is character since the "bad" characters have been encoded. */
|
|
|
CHARACTER Encode (longchar, logical)
|
/* Encodes a string per the input flags. Characters in the ASCII range (0-127) are
encoded per the flags passed in; all other characters are always %-encoded.
@param longchar The string to encode. This is longchar since it can handle unicode data even when the session can't.
We do not expect this to contain GB's of data.
@param logical TRUE if existing % values must be reencoded as %25
@return character The encoded string. Return value is character since the "bad" characters have been encoded. */
|