CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
literals.h
1
4#pragma once
5
6#include <system/string.h>
7#include <system/decimal.h>
8
14inline System::String operator"" _s(const char16_t* str, std::size_t length)
15{
16 return System::String(str, (int32_t)length);
17}
18
24inline System::Decimal operator"" _d(const char* str, std::size_t length)
25{
26 return System::Decimal(std::string(str, length));
27}
28
33inline System::Decimal operator"" _d(unsigned long long value)
34{
35 return System::Decimal(static_cast<uint64_t>(value));
36}
Represents a decimal number. This type should be allocated on stack and passed to functions by value ...
Definition: decimal.h:107
String class used across the library. Is a substitute for C# System.String when translating code....
Definition: string.h:122