Bike-X  0.8
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
OVR_UTF8Util.cpp File Reference
#include "OVR_UTF8Util.h"
Include dependency graph for OVR_UTF8Util.cpp:

Go to the source code of this file.

Namespaces

 OVR
 
 OVR::UTF8Util
 

Macros

#define INVALID_CHAR   0x0FFFD
 
#define FIRST_BYTE(mask, shift)   uc = (c & (mask)) << (shift);
 
#define NEXT_BYTE(shift)
 

Functions

SPInt OVR_STDCALL OVR::UTF8Util::GetLength (const char *buf, SPInt buflen)
 
UInt32 OVR_STDCALL OVR::UTF8Util::GetCharAt (SPInt index, const char *putf8str, SPInt length)
 
SPInt OVR_STDCALL OVR::UTF8Util::GetByteIndex (SPInt index, const char *putf8str, SPInt length)
 
int OVR_STDCALL OVR::UTF8Util::GetEncodeCharSize (UInt32 ucs_character)
 
UInt32 OVR_STDCALL OVR::UTF8Util::DecodeNextChar_Advance0 (const char **putf8Buffer)
 
void OVR_STDCALL OVR::UTF8Util::EncodeChar (char *pbuffer, SPInt *pindex, UInt32 ucs_character)
 
SPInt OVR_STDCALL OVR::UTF8Util::GetEncodeStringSize (const wchar_t *pchar, SPInt length)
 
void OVR_STDCALL OVR::UTF8Util::EncodeString (char *pbuff, const wchar_t *pchar, SPInt length)
 
UPInt OVR_STDCALL OVR::UTF8Util::DecodeString (wchar_t *pbuff, const char *putf8str, SPInt bytesLen)
 

Macro Definition Documentation

#define FIRST_BYTE (   mask,
  shift 
)    uc = (c & (mask)) << (shift);
#define INVALID_CHAR   0x0FFFD
#define NEXT_BYTE (   shift)
Value:
c = **putf8Buffer; \
if (c == 0) return 0; /* end of buffer, do not advance */ \
if ((c & 0xC0) != 0x80) return INVALID_CHAR; /* standard check */ \
(*putf8Buffer)++; \
uc |= (c & 0x3F) << shift;
#define INVALID_CHAR