CrystalSpace

Public API Reference

Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

csuctransform.h File Reference

Converter between UTF encodings. More...

#include "csunicode.h"

Go to the source code of this file.

Compounds

class  csUnicodeTransform
 Contains functions to convert between several UTF encodings. More...


Defines

#define CS_UC_MAX_UTF8_ENCODED   6
 An Unicode character encoded as UTF8 is at max encoded to this length. More...

#define CS_UC_MAX_UTF16_ENCODED   2
 An Unicode character encoded as UTF16 is at max encoded to this length. More...

#define CS_UC_MAX_UTF32_ENCODED   1
 An Unicode character encoded as UTF32 is at max encoded to this length. More...


Detailed Description

Converter between UTF encodings.

Definition in file csuctransform.h.


Define Documentation

#define _OUTPUT_CHAR buf,
chr   
 

Value:

if (bufRemaining > 0)                                   \
  {                                                     \
    if(buf) *buf++ = chr;                               \
    bufRemaining--;                                     \
  }                                                     \
  encodedLen++;

Definition at line 228 of file csuctransform.h.

#define FAIL ret   
 

Value:

{                                               \
    if (isValid) *isValid = false;              \
    ch = CS_UC_CHAR_REPLACER;                   \
    return ret;                                 \
  }

Definition at line 44 of file csuctransform.h.

#define GET_NEXT next   
 

Value:

if (chUsed == strlen)                           \
  {                                             \
    FAIL(chUsed);                               \
  }                                             \
  next = *str++;                                \
  if (next == 0)                                \
  {                                             \
    FAIL(chUsed);                               \
  }                                             \
  chUsed++;

Definition at line 55 of file csuctransform.h.

#define SUCCEED
 

Value:

if (isValid) *isValid = true;           \
    return chUsed;

Definition at line 51 of file csuctransform.h.


Generated for Crystal Space by doxygen 1.2.14