9 #ifndef CPPCOMMON_STRING_ENCODING_H
10 #define CPPCOMMON_STRING_ENCODING_H
41 static std::string
ToUTF8(std::wstring_view wstr);
50 static std::wstring
FromUTF8(std::string_view str);
57 static std::u16string
UTF8toUTF16(std::string_view str);
63 static std::u32string
UTF8toUTF32(std::string_view str);
70 static std::string
UTF16toUTF8(std::u16string_view str);
76 static std::u32string
UTF16toUTF32(std::u16string_view str);
83 static std::string
UTF32toUTF8(std::u32string_view str);
89 static std::u16string
UTF32toUTF16(std::u32string_view str);
135 static std::string
URLEncode(std::string_view str);
141 static std::string
URLDecode(std::string_view str);
static std::wstring FromUTF8(std::string_view str)
Convert UTF-8 encoded string to system wide-string.
static std::string ToUTF8(std::wstring_view wstr)
Convert system wide-string to UTF-8 encoded string.
static std::u32string UTF16toUTF32(std::u16string_view str)
Convert UTF-16 encoded string to UTF-32 encoded string.
Encoding & operator=(const Encoding &)=delete
static std::u32string UTF8toUTF32(std::string_view str)
Convert UTF-8 encoded string to UTF-32 encoded string.
static std::string Base16Decode(std::string_view str)
Base16 decode string.
static std::string Base16Encode(std::string_view str)
Base16 encode string.
static std::string Base64Decode(std::string_view str)
Base64 decode string.
static std::string Base64Encode(std::string_view str)
Base64 encode string.
static std::string URLDecode(std::string_view str)
URL decode string.
Encoding(Encoding &&)=delete
static std::u16string UTF32toUTF16(std::u32string_view str)
Convert UTF-32 encoded string to UTF-16 encoded string.
static std::string UTF16toUTF8(std::u16string_view str)
Convert UTF-16 encoded string to UTF-8 encoded string.
Encoding & operator=(Encoding &&)=delete
static std::u16string UTF8toUTF16(std::string_view str)
Convert UTF-8 encoded string to UTF-16 encoded string.
static std::string UTF32toUTF8(std::u32string_view str)
Convert UTF-32 encoded string to UTF-8 encoded string.
static std::string URLEncode(std::string_view str)
URL encode string.
static std::string Base32Decode(std::string_view str)
Base32 decode string.
static std::string Base32Encode(std::string_view str)
Base32 encode string.
Encoding(const Encoding &)=delete
C++ Common project definitions.