Defines

utf8.cpp File Reference

#include "utf8.h"
Include dependency graph for utf8.cpp:

Defines

#define INVALID_CHAR   0x0FFFD
#define FIRST_BYTE(mask, shift)
#define NEXT_BYTE(shift)
#define ENC_DEFAULT   0
#define ENC_UTF8   1
#define ENC_UTF16BE   2
#define ENC_UTF16LE   3

Define Documentation

#define ENC_DEFAULT   0
#define ENC_UTF16BE   2
#define ENC_UTF16LE   3
#define ENC_UTF8   1
#define FIRST_BYTE (   mask,
  shift 
)
Value:
/* Post-increment iterator */ \
    uc = (*it++ & (mask)) << (shift);

Referenced by utf8::decodeNextUnicodeCharacter().

#define INVALID_CHAR   0x0FFFD
#define NEXT_BYTE (   shift  ) 
Value:
\
    if (it == e || *it == 0) return 0; /* end of buffer, do not advance */    \
    if ((*it & 0xC0) != 0x80) return utf8::invalid; /* standard check */    \
    /* Post-increment iterator: */        \
    uc |= (*it++ & 0x3F) << shift;

Referenced by utf8::decodeNextUnicodeCharacter().