diff options
author | 2013-01-11 07:32:46 +0000 | |
---|---|---|
committer | 2013-01-11 07:32:46 +0000 | |
commit | 0e19f641d3186cdbf51f8ca857e2b07ab95779c2 (patch) | |
tree | 234109de1123b13f217494af4b3f8efad346d5cc /src/lib/util/unicode.h | |
parent | 111157ca09a9ff60fe4a9ba49173c315e94314fa (diff) |
Cleanups and version bumpmame0148
Diffstat (limited to 'src/lib/util/unicode.h')
-rw-r--r-- | src/lib/util/unicode.h | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/src/lib/util/unicode.h b/src/lib/util/unicode.h index e59c6fe862b..aa3d3900845 100644 --- a/src/lib/util/unicode.h +++ b/src/lib/util/unicode.h @@ -60,30 +60,30 @@ /* these defines specify the maximum size of different types of Unicode * character encodings */ -#define UTF8_CHAR_MAX 6 -#define UTF16_CHAR_MAX 2 +#define UTF8_CHAR_MAX 6 +#define UTF16_CHAR_MAX 2 /* these are UTF-8 encoded strings for common characters */ -#define UTF8_NBSP "\xc2\xa0" /* non-breaking space */ -#define UTF8_MULTIPLY "\xc3\x97" /* multiplication symbol */ -#define UTF8_DEGREES "\xc2\xb0" /* degrees symbol */ +#define UTF8_NBSP "\xc2\xa0" /* non-breaking space */ +#define UTF8_MULTIPLY "\xc3\x97" /* multiplication symbol */ +#define UTF8_DEGREES "\xc2\xb0" /* degrees symbol */ -#define a_RING "\xc3\xa5" /* small a with a ring */ -#define a_UMLAUT "\xc3\xa4" /* small a with an umlaut */ -#define o_UMLAUT "\xc3\xb6" /* small o with an umlaut */ -#define u_UMLAUT "\xc3\xbc" /* small u with an umlaut */ -#define e_ACUTE "\xc3\xa9" /* small e with an acute */ +#define a_RING "\xc3\xa5" /* small a with a ring */ +#define a_UMLAUT "\xc3\xa4" /* small a with an umlaut */ +#define o_UMLAUT "\xc3\xb6" /* small o with an umlaut */ +#define u_UMLAUT "\xc3\xbc" /* small u with an umlaut */ +#define e_ACUTE "\xc3\xa9" /* small e with an acute */ -#define A_RING "\xc3\x85" /* capital A with a ring */ -#define A_UMLAUT "\xc3\x84" /* capital A with an umlaut */ -#define O_UMLAUT "\xc3\x96" /* capital O with an umlaut */ -#define U_UMLAUT "\xc3\x9c" /* capital U with an umlaut */ -#define E_ACUTE "\xc3\x89" /* capital E with an acute */ +#define A_RING "\xc3\x85" /* capital A with a ring */ +#define A_UMLAUT "\xc3\x84" /* capital A with an umlaut */ +#define O_UMLAUT "\xc3\x96" /* capital O with an umlaut */ +#define U_UMLAUT "\xc3\x9c" /* capital U with an umlaut */ +#define E_ACUTE "\xc3\x89" /* capital E with an acute */ -#define UTF8_LEFT "\xe2\x86\x90" /* cursor left */ -#define UTF8_RIGHT "\xe2\x86\x92" /* cursor right */ -#define UTF8_UP "\xe2\x86\x91" /* cursor up */ -#define UTF8_DOWN "\xe2\x86\x93" /* cursor down */ +#define UTF8_LEFT "\xe2\x86\x90" /* cursor left */ +#define UTF8_RIGHT "\xe2\x86\x92" /* cursor right */ +#define UTF8_UP "\xe2\x86\x91" /* cursor up */ +#define UTF8_DOWN "\xe2\x86\x93" /* cursor down */ @@ -124,15 +124,15 @@ int utf8_is_valid_string(const char *utf8string); ***************************************************************************/ #ifdef LSB_FIRST -#define uchar_from_utf16be uchar_from_utf16f -#define uchar_from_utf16le uchar_from_utf16 -#define utf16be_from_uchar utf16f_from_uchar -#define utf16le_from_uchar utf16_from_uchar +#define uchar_from_utf16be uchar_from_utf16f +#define uchar_from_utf16le uchar_from_utf16 +#define utf16be_from_uchar utf16f_from_uchar +#define utf16le_from_uchar utf16_from_uchar #else -#define uchar_from_utf16be uchar_from_utf16 -#define uchar_from_utf16le uchar_from_utf16f -#define utf16be_from_uchar utf16_from_uchar -#define utf16le_from_uchar utf16f_from_uchar +#define uchar_from_utf16be uchar_from_utf16 +#define uchar_from_utf16le uchar_from_utf16f +#define utf16be_from_uchar utf16_from_uchar +#define utf16le_from_uchar utf16f_from_uchar #endif #endif /* UNICODE_H */ |