char2uni.h File Reference

Go to the source code of this file.

Defines

#define UNICODE_CHAR   CARD32
#define IsUTF8Locale()   (as_current_charset_id==CHARSET_UTF8)
#define CHAR2UNICODE(c)
#define UTF8_CHAR_SIZE(c)
#define CHAR_SIZE(c)   1

Enumerations

enum  ASSupportedCharsets

Functions

ASSupportedCharsets as_set_charset (ASSupportedCharsets new_charset)
ASSupportedCharsets parse_charset_name (const char *name)

Variables

const unsigned shortas_current_charset
ASSupportedCharsets as_current_charset_id


Define Documentation

#define CHAR2UNICODE ( c   ) 

Value:

((UNICODE_CHAR)(((((unsigned short)(c))&0x0080)!=0)? \
                                        as_current_charset[((unsigned short)(c))&0x007F]:\
                               ((unsigned char)(c))))

Definition at line 48 of file char2uni.h.

Referenced by get_character_glyph(), load_freetype_glyphs(), load_freetype_locale_glyphs(), and split_freetype_glyph_range().

#define CHAR_SIZE ( c   )     1

Definition at line 77 of file char2uni.h.

 
#define IsUTF8Locale (  )     (as_current_charset_id==CHARSET_UTF8)

Definition at line 39 of file char2uni.h.

Referenced by draw_fancy_text(), draw_text(), get_fancy_text_size(), get_text_size(), and handle_asxml_tag_text().

#define UNICODE_CHAR   CARD32

Definition at line 37 of file char2uni.h.

Referenced by get_utf8_glyph(), load_freetype_glyphs(), and utf8_to_unicode().

#define UTF8_CHAR_SIZE ( c   ) 

Value:

((((c)&0xC0)==0xC0)? \
                                                         (((c)&0x20)? \
                                                         (((c)&0x10)? \
                                                         (((c)&0x08)? \
                                                         (((c)&0x04)?6:5):4):3):2):1)

Definition at line 69 of file char2uni.h.

Referenced by get_text_glyph_list(), get_text_length(), get_text_size_internal(), and get_utf8_glyph().


Enumeration Type Documentation

enum ASSupportedCharsets

Definition at line 9 of file char2uni.h.


Function Documentation

ASSupportedCharsets as_set_charset ( ASSupportedCharsets  new_charset  ) 

Definition at line 983 of file char2uni.c.

References _as_supported_charsets, as_current_charset, as_current_charset_id, CHARSET_ISO8859_1, and SUPPORTED_CHARSETS_NUM.

ASSupportedCharsets parse_charset_name ( const char *  name  ) 

Definition at line 774 of file char2uni.c.

References c, CHARSET_CP1250, CHARSET_CP1251, CHARSET_CP1252, CHARSET_ISO8859_1, CHARSET_ISO8859_10, CHARSET_ISO8859_13, CHARSET_ISO8859_14, CHARSET_ISO8859_15, CHARSET_ISO8859_16, CHARSET_ISO8859_2, CHARSET_ISO8859_3, CHARSET_ISO8859_4, CHARSET_ISO8859_5, CHARSET_ISO8859_6, CHARSET_ISO8859_7, CHARSET_ISO8859_8, CHARSET_ISO8859_9, CHARSET_KOI8_R, CHARSET_KOI8_RU, CHARSET_KOI8_U, CHARSET_UTF8, i, mystrncasecmp, NULL, parse_short_charset_name(), strcasecmp, and SUPPORTED_CHARSETS_NUM.


Variable Documentation

const unsigned short* as_current_charset

Definition at line 979 of file char2uni.c.

Referenced by as_set_charset().

ASSupportedCharsets as_current_charset_id

Definition at line 980 of file char2uni.c.

Referenced by as_set_charset().


Generated on Tue Jul 5 15:57:54 2011 for ROOT_528-00b_version by  doxygen 1.5.1