Back to index

nux  3.0.0
Namespaces | Defines | Enumerations | Functions
NUni.h File Reference
This graph shows which files directly or indirectly include this file:

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_REPLACEMENT_CHAR   (unsigned int)0x0000FFFD
#define UNI_MAX_BMP   (unsigned int)0x0000FFFF
#define UNI_MAX_UTF16   (unsigned int)0x0010FFFF
#define UNI_MAX_UTF32   (unsigned int)0x7FFFFFFF
#define UNI_MAX_LEGAL_UTF32   (unsigned int)0x0010FFFF

Enumerations

enum  nux::ConversionResult { nux::conversionOK = 0, nux::sourceExhausted, nux::targetExhausted, nux::sourceIllegal }
enum  nux::ConversionFlags { nux::strictConversion = 0, nux::lenientConversion }

Functions

ConversionResult nux::ConvertUTF8toUTF16 (const unsigned char **sourceStart, const unsigned char *sourceEnd, wchar_t **targetStart, wchar_t *targetEnd, ConversionFlags flags)
ConversionResult nux::ConvertUTF16toUTF8 (const wchar_t **sourceStart, const wchar_t *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)
ConversionResult nux::ConvertUTF32toUTF8 (const unsigned int **sourceStart, const unsigned int *sourceEnd, unsigned char **targetStart, unsigned char *targetEnd, ConversionFlags flags)
ConversionResult nux::ConvertUTF16toUTF32 (const wchar_t **sourceStart, const wchar_t *sourceEnd, unsigned int **targetStart, unsigned int *targetEnd, ConversionFlags flags)
ConversionResult nux::ConvertUTF32toUTF16 (const unsigned int **sourceStart, const unsigned int *sourceEnd, wchar_t **targetStart, wchar_t *targetEnd, ConversionFlags flags)
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().

Define Documentation

#define UNI_MAX_BMP   (unsigned int)0x0000FFFF

Definition at line 126 of file NUni.h.

#define UNI_MAX_LEGAL_UTF32   (unsigned int)0x0010FFFF

Definition at line 129 of file NUni.h.

#define UNI_MAX_UTF16   (unsigned int)0x0010FFFF

Definition at line 127 of file NUni.h.

#define UNI_MAX_UTF32   (unsigned int)0x7FFFFFFF

Definition at line 128 of file NUni.h.

#define UNI_REPLACEMENT_CHAR   (unsigned int)0x0000FFFD

Definition at line 125 of file NUni.h.