Nebula
Toggle main menu visibility
Loading...
Searching...
No Matches
win32stringconverter.h
Go to the documentation of this file.
1
#pragma once
2
//------------------------------------------------------------------------------
12
#include "
util/string.h
"
13
14
//------------------------------------------------------------------------------
15
namespace
Win32
16
{
17
class
Win32StringConverter
18
{
19
public
:
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
//------------------------------------------------------------------------------
Win32::Win32StringConverter
Convert between UTF-8 and 16-bit wide strings.
Definition
win32stringconverter.h:18
Win32::Win32StringConverter::UTF8ToWide
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
Win32::Win32StringConverter::WideToUTF8
static Util::String WideToUTF8(const ushort *src, SizeT length=-1)
convert from wide string to UTF-8 string
Definition
win32stringconverter.cc:56
Math::length
__forceinline scalar length(const quat &q)
Definition
quat.h:260
Win32
[TODO: Describe Win32 subsystem]
string.h
Util.String
Nebula's universal string class.
Definition
String.cs:8
SizeT
int SizeT
Definition
types.h:42
ushort
unsigned short ushort
Definition
types.h:34
code
foundation
util
win32
win32stringconverter.h
Generated on
for Nebula. Dark theme by
Tilen Majerle
. All rights reserved.