System::UriShim Class Reference

Service class. More...

Static Public Member Functions

static ASPOSECPP_SHARED_API String HexEscape (char16_t character)
 
static ASPOSECPP_SHARED_API char16_t HexUnescape (String pattern, int32_t &index)
 
static ASPOSECPP_SHARED_API bool IsHexEncoding (String pattern, int32_t index)
 
static ASPOSECPP_SHARED_API void EscapeAsciiChar (char16_t ch, System::ArrayPtr< char16_t > to, int32_t &pos)
 

Detailed Description

Service class.

Member Function Documentation

◆ EscapeAsciiChar()

static ASPOSECPP_SHARED_API void System::UriShim::EscapeAsciiChar ( char16_t  ch,
System::ArrayPtr< char16_t >  to,
int32_t &  pos 
)
static

Converts character to escaped hex form.

Parameters
chCharacter to convert.
toOutput buffer.
posPosition in output buffer; gets advanced after encoding.

◆ HexEscape()

static ASPOSECPP_SHARED_API String System::UriShim::HexEscape ( char16_t  character)
static

Converts character to escaped hex form.

Parameters
characterCharacter to convert.
Returns
Escaped value.

◆ HexUnescape()

static ASPOSECPP_SHARED_API char16_t System::UriShim::HexUnescape ( String  pattern,
int32_t &  index 
)
static

Converts character from escaped hex form.

Parameters
patternString to read escaped hex form from.
indexOffset in the given string.
Returns
Decoded character.

◆ IsHexEncoding()

static ASPOSECPP_SHARED_API bool System::UriShim::IsHexEncoding ( String  pattern,
int32_t  index 
)
static

Checks if given pattern is an escaped hex form.

Parameters
patternString to read escaped hex form from.
indexOffset in the given string.
Returns
True if there's an escaped hex pattern at given position, false otherwise.