Nebula
Loading...
Searching...
No Matches
win32stringconverter.h
Go to the documentation of this file.
1#pragma once
2//------------------------------------------------------------------------------
12#include "util/string.h"
13
14//------------------------------------------------------------------------------
15namespace Win32
16{
18{
19public:
21 static SizeT UTF8ToWide(const Util::String& src, ushort* dst, SizeT dstMaxBytes);
23 static SizeT UTF8ToWide(const char* src, ushort* dst, SizeT dstMaxBytes);
25 static Util::String WideToUTF8(const ushort* src, SizeT length = -1);
26};
27
28} // namespace Win32
29//------------------------------------------------------------------------------
Convert between UTF-8 and 16-bit wide strings.
Definition win32stringconverter.h:18
static SizeT UTF8ToWide(const Util::String &src, ushort *dst, SizeT dstMaxBytes)
convert from UTF-8 encoded string object to wide string, return number of used bytes
Definition win32stringconverter.cc:17
static Util::String WideToUTF8(const ushort *src, SizeT length=-1)
convert from wide string to UTF-8 string
Definition win32stringconverter.cc:56
__forceinline scalar length(const quat &q)
Definition quat.h:259
[TODO: Describe Win32 subsystem]
Nebula's universal string class.
Definition string.h:50
int SizeT
Definition types.h:49
unsigned short ushort
Definition types.h:32