m17n ライブラリ 1.8.4
|
マクロ定義 | |
#define | MAX_UTF8_CHAR_BYTES 6 |
#define | MAX_UNICODE_CHAR_BYTES 4 |
#define | USHORT_SIZE (sizeof (unsigned short)) |
#define | UINT_SIZE (sizeof (unsigned int)) |
#define | UNIT_BYTES(format) |
#define | CHAR_UNITS_ASCII(c) ((c) < 0x80) |
#define | CHAR_UNITS_UTF8(c) |
#define | CHAR_UNITS_UTF16(c) ((c) < 0x110000 ? (2 - ((c) < 0x10000)) : 0) |
#define | CHAR_UNITS_UTF32(c) 1 |
#define | CHAR_UNITS(c, format) |
#define | CHAR_BYTES CHAR_UNITS_UTF8 |
#define | CHAR_UNITS_AT_UTF8(p) |
#define | CHAR_UNITS_AT_UTF16(p) |
#define | CHAR_UNITS_AT(mt, p) |
#define | CHAR_BYTES_AT CHAR_UNITS_AT_UTF8 |
#define | CHAR_UNITS_BY_HEAD_UTF8(c) |
#define | CHAR_UNITS_BY_HEAD_UTF16(c) (2 - ((unsigned short) (c) < 0xD800 || (unsigned short) (c) >= 0xDC00)) |
#define | CHAR_UNITS_BY_HEAD(c, format) |
#define | CHAR_BYTES_BY_HEAD CHAR_UNITS_BY_HEAD_UTF8 |
#define | STRING_CHAR_UTF8(p) |
#define | STRING_CHAR_UTF16(p) |
#define | STRING_CHAR STRING_CHAR_UTF8 |
#define | STRING_CHAR_ADVANCE_UTF8(p) |
#define | STRING_CHAR_ADVANCE_UTF16(p) |
#define | STRING_CHAR_ADVANCE STRING_CHAR_ADVANCE_UTF8 |
#define | STRING_CHAR_AND_UNITS_UTF8(p, bytes) |
#define | STRING_CHAR_AND_UNITS_UTF16(p, units) |
#define | STRING_CHAR_AND_UNITS(p, units, format) |
#define | STRING_CHAR_AND_BYTES STRING_CHAR_AND_UNITS_UTF8 |
#define | CHAR_STRING_UTF8(c, p) |
#define | CHAR_STRING_UTF16(c, p) |
#define | CHAR_STRING CHAR_STRING_UTF8 |
#define | CHAR_HEAD_P_UTF8(p) ((*(p) & 0xC0) != 0x80) |
#define | CHAR_HEAD_P_UTF16(p) |
#define | CHAR_HEAD_P CHAR_HEAD_P_UTF8 |
#define | TOLOWER(c) (((c) >= 'A' && (c) <= 'Z') ? (c) + 32 : (c)) |
#define | TOUPPER(c) (((c) >= 'a' && (c) <= 'z') ? (c) - 32 : (c)) |
#define | ISUPPER(c) ((c) >= 'A' && (c) <= 'Z') |
#define | ISALNUM(c) |
関数 | |
void | mchar__define_prop (MSymbol key, MSymbol type, void *mdb) |
#define MAX_UTF8_CHAR_BYTES 6 |
#define MAX_UNICODE_CHAR_BYTES 4 |
#define USHORT_SIZE (sizeof (unsigned short)) |
#define UINT_SIZE (sizeof (unsigned int)) |
#define UNIT_BYTES | ( | format | ) |
#define CHAR_UNITS_ASCII | ( | c | ) | ((c) < 0x80) |
#define CHAR_UNITS_UTF8 | ( | c | ) |
#define CHAR_UNITS_UTF16 | ( | c | ) | ((c) < 0x110000 ? (2 - ((c) < 0x10000)) : 0) |
#define CHAR_UNITS_UTF32 | ( | c | ) | 1 |
#define CHAR_UNITS | ( | c, | |
format | |||
) |
#define CHAR_BYTES CHAR_UNITS_UTF8 |
#define CHAR_UNITS_AT_UTF8 | ( | p | ) |
#define CHAR_UNITS_AT_UTF16 | ( | p | ) |
#define CHAR_UNITS_AT | ( | mt, | |
p | |||
) |
#define CHAR_BYTES_AT CHAR_UNITS_AT_UTF8 |
#define CHAR_UNITS_BY_HEAD_UTF8 | ( | c | ) |
#define CHAR_UNITS_BY_HEAD_UTF16 | ( | c | ) | (2 - ((unsigned short) (c) < 0xD800 || (unsigned short) (c) >= 0xDC00)) |
#define CHAR_UNITS_BY_HEAD | ( | c, | |
format | |||
) |
#define CHAR_BYTES_BY_HEAD CHAR_UNITS_BY_HEAD_UTF8 |
#define STRING_CHAR_UTF8 | ( | p | ) |
#define STRING_CHAR_UTF16 | ( | p | ) |
#define STRING_CHAR STRING_CHAR_UTF8 |
#define STRING_CHAR_ADVANCE_UTF8 | ( | p | ) |
#define STRING_CHAR_ADVANCE_UTF16 | ( | p | ) |
#define STRING_CHAR_ADVANCE STRING_CHAR_ADVANCE_UTF8 |
#define STRING_CHAR_AND_UNITS_UTF8 | ( | p, | |
bytes | |||
) |
#define STRING_CHAR_AND_UNITS_UTF16 | ( | p, | |
units | |||
) |
#define STRING_CHAR_AND_UNITS | ( | p, | |
units, | |||
format | |||
) |
#define STRING_CHAR_AND_BYTES STRING_CHAR_AND_UNITS_UTF8 |
#define CHAR_STRING_UTF8 | ( | c, | |
p | |||
) |
#define CHAR_STRING_UTF16 | ( | c, | |
p | |||
) |
#define CHAR_STRING CHAR_STRING_UTF8 |
#define CHAR_HEAD_P_UTF8 | ( | p | ) | ((*(p) & 0xC0) != 0x80) |
#define CHAR_HEAD_P_UTF16 | ( | p | ) |
#define CHAR_HEAD_P CHAR_HEAD_P_UTF8 |
#define TOLOWER | ( | c | ) | (((c) >= 'A' && (c) <= 'Z') ? (c) + 32 : (c)) |
#define TOUPPER | ( | c | ) | (((c) >= 'a' && (c) <= 'z') ? (c) - 32 : (c)) |
#define ISUPPER | ( | c | ) | ((c) >= 'A' && (c) <= 'Z') |
#define ISALNUM | ( | c | ) |
void mchar__define_prop | ( | MSymbol | key, |
MSymbol | type, | ||
void * | mdb | ||
) |