utf8.h

00001 /****************************************************************************
00002  *                          utf8.h
00003  * This header file defines constants and macros to be used for utf8
00004  * decoding.
00005  *
00006  ***************************************************************************/
00007 
00008 #ifndef UTF8_H_INCLUDED
00009 #define UTF8_H_INCLUDED
00010 
00011 #define ISUTF8_MB(c) ((unsigned)(c) >= 0xc0 && (unsigned)(c) <= 0xfd)
00012 
00013 #define utf8_get_char(in, chr) \
00014         (*(in) & 0x80 ? __utf8_get_char(in, chr) : *chr=*in, ++in)
00015 
00016 extern char *__utf8_get_char(const char *in, int *chr);
00017 
00018 #endif /*UTF8_H_INCLUDED*/

Generated on Wed Jul 26 13:30:46 2006 for XSB by  doxygen 1.4.5