ChatPlexSDK-BS 1.0.1-v6.2.0
C++ ChatPlex BeatSaber SDK
Loading...
Searching...
No Matches
Il2cpp_string.hpp
1#include <string>
2#include <string_view>
3
4namespace CP_SDK::Utils {
5
6 std::u16string StrToU16Str(std::string_view p_Str);
7 std::string U16StrToStr(std::u16string_view p_Str);
8
9 bool U16EqualsToCaseInsensitive(std::u16string_view p_Left, std::u16string_view p_Right);
10
11 std::u16string U16UrlEncode(std::u16string_view p_Input);
12
13}
14
15static std::string operator+(std::string_view p_Left, std::u16string_view p_Right)
16{
17 return std::string(p_Left) + CP_SDK::Utils::U16StrToStr(p_Right);
18}
19/*static std::u16string operator+(const char* p_Left, std::string_view p_Right)
20{
21 return std::string(p_Left) + std::string(p_Right);
22}*/
23static std::string operator+(std::string_view p_Left, const char* p_Right)
24{
25 return std::string(p_Left) + std::string(p_Right);
26}
27/*static std::string operator+(std::string p_Left, std::string_view p_Right)
28{
29 return p_Left + std::string(p_Right);
30}*/
31
32static std::u16string operator+(std::u16string_view p_Left, std::string_view p_Right)
33{
34 return std::u16string(p_Left) + CP_SDK::Utils::StrToU16Str(p_Right);
35}
36static std::u16string operator+(const char16_t* p_Left, std::string_view p_Right)
37{
38 return std::u16string(p_Left) + CP_SDK::Utils::StrToU16Str(p_Right);
39}
40static std::u16string operator+(const char16_t* p_Left, std::u16string_view p_Right)
41{
42 return std::u16string(p_Left) + std::u16string(p_Right);
43}
44static std::u16string operator+(std::u16string p_Left, std::u16string_view p_Right)
45{
46 return p_Left + std::u16string(p_Right);
47}
Various platform utils like Delegate/Action/Function/Event system.
Definition Delegate.hpp:8