LeviLamina
Loading...
Searching...
No Matches
StringConversions.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5namespace Core {
6
8public:
9 // static functions
10 // NOLINTBEGIN
11 MCNAPI static ::std::string toUtf8(::std::basic_string_view<wchar_t, ::std::char_traits<wchar_t>> src);
12
13 MCNAPI static ::std::string toUtf8(wchar_t const* src, int srcLen);
14
15 MCNAPI static int toUtf8(wchar_t const* src, int srcLen, char* dest, int max);
16
17 MCNAPI static ::std::wstring toWide(::std::string_view src);
18
19 MCNAPI static ::std::wstring toWide(char const* src, int srcLen);
20
21 MCNAPI static int toWide(char const* src, int srcLen, wchar_t* dest, int max);
22 // NOLINTEND
23};
24
25} // namespace Core
Definition StringConversions.h:7
static MCAPI ::std::string toUtf8(wchar_t const *src, int srcLen)
static MCAPI int toUtf8(wchar_t const *src, int srcLen, char *dest, int max)
static MCAPI ::std::wstring toWide(::std::string_view src)
static MCAPI ::std::wstring toWide(char const *src, int srcLen)
static MCAPI ::std::string toUtf8(::std::basic_string_view< wchar_t, ::std::char_traits< wchar_t > > src)
static MCAPI int toWide(char const *src, int srcLen, wchar_t *dest, int max)