CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
uri_shim.h
1
2#pragma once
3#include <system/string.h>
4#include <system/object.h>
5#include <system/array.h>
6#include <cstdint>
7
8namespace System {
9
12{
13public:
17 ASPOSECPP_SHARED_API static String HexEscape(char16_t character);
22 ASPOSECPP_SHARED_API static char16_t HexUnescape(const String& pattern, int32_t& index);
27 ASPOSECPP_SHARED_API static bool IsHexEncoding(const String& pattern, int32_t index);
32 ASPOSECPP_SHARED_API static void EscapeAsciiChar(char16_t ch, const System::ArrayPtr<char16_t>& to, int32_t& pos);
33private:
34 static const char16_t c_DummyChar;
35 static System::ArrayPtr<char16_t> s_hexUpperChars;
36 static char16_t EscapedAscii(char16_t digit, char16_t next);
37};
38
39} // namespace System
40
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
String class used across the library. Is a substitute for C# System.String when translating code....
Definition: string.h:122
Service class.
Definition: uri_shim.h:12
static bool IsHexEncoding(const String &pattern, int32_t index)
Checks if given pattern is an escaped hex form.
static String HexEscape(char16_t character)
Converts character to escaped hex form.
static char16_t HexUnescape(const String &pattern, int32_t &index)
Converts character from escaped hex form.
static void EscapeAsciiChar(char16_t ch, const System::ArrayPtr< char16_t > &to, int32_t &pos)
Converts character to escaped hex form.
Definition: db_command.h:9