CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
System::UriShim Class Reference

Service class. More...

#include <uri_shim.h>

Static Public Member Functions

static String HexEscape (char16_t character)
 Converts character to escaped hex form. More...
 
static char16_t HexUnescape (const String &pattern, int32_t &index)
 Converts character from escaped hex form. More...
 
static bool IsHexEncoding (const String &pattern, int32_t index)
 Checks if given pattern is an escaped hex form. More...
 
static void EscapeAsciiChar (char16_t ch, const System::ArrayPtr< char16_t > &to, int32_t &pos)
 Converts character to escaped hex form. More...
 

Detailed Description

Service class.

Member Function Documentation

◆ EscapeAsciiChar()

static void System::UriShim::EscapeAsciiChar ( char16_t  ch,
const 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 String System::UriShim::HexEscape ( char16_t  character)
static

Converts character to escaped hex form.

Parameters
characterCharacter to convert.
Returns
Escaped value.

◆ HexUnescape()

static char16_t System::UriShim::HexUnescape ( const 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 bool System::UriShim::IsHexEncoding ( const 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.