DGen/SDL
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Macros
utf8.h File Reference
#include <ctype.h>

Go to the source code of this file.

Macros

#define utf8_strlen(S, B)   ((B) < 0 ? (int)strlen(S) : (B))
 UTF-8 utility functions.
#define utf8_tounicode(S, CP)   (*(CP) = (unsigned char)*(S), 1)
#define utf8_index(C, I)   (I)
#define utf8_charlen(C)   1

Macro Definition Documentation

#define utf8_charlen (   C)    1
#define utf8_index (   C,
 
)    (I)
#define utf8_strlen (   S,
 
)    ((B) < 0 ? (int)strlen(S) : (B))

UTF-8 utility functions.

(c) 2010 Steve Bennett steve.nosp@m.b@wo.nosp@m.rkwar.nosp@m.e.ne.nosp@m.t.au

See LICENCE for licence details.

#define utf8_tounicode (   S,
  CP 
)    (*(CP) = (unsigned char)*(S), 1)