diff --git a/YYToolkit/source/YYTK/Shared.cpp b/YYToolkit/source/YYTK/Shared.cpp index 54a7d17..cd8ebbc 100644 --- a/YYToolkit/source/YYTK/Shared.cpp +++ b/YYToolkit/source/YYTK/Shared.cpp @@ -121,6 +121,13 @@ YYTK::RValue::RValue( *this = std::string_view(Value); } +YYTK::RValue::RValue( + IN const char8_t* Value +) +{ + *this = std::u8string_view(Value); +} + RValue::RValue( IN std::string_view Value ) @@ -139,6 +146,27 @@ RValue::RValue( ); } +YYTK::RValue::RValue( + IN std::u8string_view Value +) +{ + *this = std::string(Value.cbegin(), Value.cend()); +} + +YYTK::RValue::RValue( + IN const std::string& Value +) +{ + *this = std::string_view(Value); +} + +YYTK::RValue::RValue( + IN const std::u8string& Value +) +{ + *this = std::u8string_view(Value); +} + RValue::RValue( IN std::string_view Value, IN class YYTKInterface* Interface diff --git a/YYToolkit/source/YYTK/Shared.hpp b/YYToolkit/source/YYTK/Shared.hpp index 9d868f9..7690d68 100644 --- a/YYToolkit/source/YYTK/Shared.hpp +++ b/YYToolkit/source/YYTK/Shared.hpp @@ -9,7 +9,7 @@ #define YYTK_MAJOR 3 #define YYTK_MINOR 1 -#define YYTK_PATCH 0 +#define YYTK_PATCH 1 #include #include @@ -176,10 +176,26 @@ namespace YYTK IN const char* Value ); + RValue( + IN const char8_t* Value + ); + RValue( IN std::string_view Value ); + RValue( + IN std::u8string_view Value + ); + + RValue( + IN const std::string& Value + ); + + RValue( + IN const std::u8string& Value + ); + RValue( IN std::string_view Value, IN YYTKInterface* Interface