Namespaces | Defines | Functions
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

namespace  OVR
namespace  OVR::UTF8Util

Defines

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

Functions

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

Define 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;


oculus_sdk
Author(s):
autogenerated on Mon Oct 6 2014 03:01:19