Back to index

nux  3.0.0
Namespaces | Defines | Functions | Variables
NUni.cpp File Reference
#include "NuxCore.h"

Go to the source code of this file.

Namespaces

namespace  nux
 The Writer singleton is responsible for controlling where the logging message go.

Defines

#define UNI_SUR_HIGH_START   (unsigned int)0xD800
#define UNI_SUR_HIGH_END   (unsigned int)0xDBFF
#define UNI_SUR_LOW_START   (unsigned int)0xDC00
#define UNI_SUR_LOW_END   (unsigned int)0xDFFF

Functions

ConversionResult nux::ConvertUTF32toUTF16 (const unsigned int **sourceStart, const unsigned int *sourceEnd, wchar_t **targetStart, wchar_t *targetEnd, ConversionFlags flags)
ConversionResult nux::ConvertUTF16toUTF32 (const wchar_t **sourceStart, const wchar_t *sourceEnd, unsigned int **targetStart, unsigned int *targetEnd, ConversionFlags flags)
ConversionResult nux::ConvertUTF16toUTF8 (const wchar_t **sourceStart, const wchar_t *sourceEnd, unsigned char **targetStart, unsigned char *targetEnd, ConversionFlags flags)
static bool nux::isLegalUTF8 (const unsigned char *source, int length)
bool nux::isLegalUTF8Sequence (const unsigned char *source, const unsigned char *sourceEnd)
bool nux::tr_utf8_validate (const char *str, int max_len, const char **end)
 This is a variation of isLegalUTF8Sequence() that behaves like g_utf8_validate().
ConversionResult nux::ConvertUTF8toUTF16 (const unsigned char **sourceStart, const unsigned char *sourceEnd, wchar_t **targetStart, wchar_t *targetEnd, ConversionFlags flags)
ConversionResult nux::ConvertUTF32toUTF8 (const unsigned int **sourceStart, const unsigned int *sourceEnd, unsigned char **targetStart, unsigned char *targetEnd, ConversionFlags flags)
ConversionResult nux::ConvertUTF8toUTF32 (const unsigned char **sourceStart, const unsigned char *sourceEnd, unsigned int **targetStart, unsigned int *targetEnd, ConversionFlags flags)

Variables

static const int nux::halfShift = 10
static const unsigned int nux::halfBase = 0x0010000UL
static const unsigned int nux::halfMask = 0x3FFUL
static const char nux::trailingBytesForUTF8 [256]
static const unsigned int nux::offsetsFromUTF8 [6]
static const unsigned char nux::firstByteMark [7] = { 0x00, 0x00, 0xC0, 0xE0, 0xF0, 0xF8, 0xFC }

Define Documentation

#define UNI_SUR_HIGH_END   (unsigned int)0xDBFF

Definition at line 76 of file NUni.cpp.

#define UNI_SUR_HIGH_START   (unsigned int)0xD800

Definition at line 75 of file NUni.cpp.

#define UNI_SUR_LOW_END   (unsigned int)0xDFFF

Definition at line 78 of file NUni.cpp.

#define UNI_SUR_LOW_START   (unsigned int)0xDC00

Definition at line 77 of file NUni.cpp.