Previous 199869 Revisions Next

r33589 Saturday 29th November, 2014 at 13:49:40 UTC by hap
added macros for calculator button symbols, like eg. squareroot
[src/lib/util]unicode.h

trunk/src/lib/util/unicode.h
r242100r242101
3535#define UTF16_CHAR_MAX  2
3636
3737/* these are UTF-8 encoded strings for common characters */
38#define UTF8_NBSP           "\xc2\xa0"          /* non-breaking space */
39#define UTF8_MULTIPLY       "\xc3\x97"          /* multiplication symbol */
40#define UTF8_DEGREES        "\xc2\xb0"          /* degrees symbol */
38#define UTF8_NBSP               "\xc2\xa0"          /* non-breaking space */
4139
42#define a_RING              "\xc3\xa5"          /* small a with a ring */
43#define a_UMLAUT            "\xc3\xa4"          /* small a with an umlaut */
44#define o_UMLAUT            "\xc3\xb6"          /* small o with an umlaut */
45#define u_UMLAUT            "\xc3\xbc"          /* small u with an umlaut */
46#define e_ACUTE             "\xc3\xa9"          /* small e with an acute */
40#define UTF8_MULTIPLY           "\xc3\x97"          /* multiplication sign */
41#define UTF8_DIVIDE             "\xc3\xb7"          /* division sign */
42#define UTF8_SQUAREROOT         "\xe2\x88\x9a"      /* square root symbol */
43#define UTF8_PLUSMINUS          "\xc2\xb1"          /* plusminus symbol */
4744
48#define A_RING              "\xc3\x85"          /* capital A with a ring */
49#define A_UMLAUT            "\xc3\x84"          /* capital A with an umlaut */
50#define O_UMLAUT            "\xc3\x96"          /* capital O with an umlaut */
51#define U_UMLAUT            "\xc3\x9c"          /* capital U with an umlaut */
52#define E_ACUTE             "\xc3\x89"          /* capital E with an acute */
45#define UTF8_POW_2              "\xc2\xb2"          /* superscript 2 */
46#define UTF8_POW_X              "\xcb\xa3"          /* superscript x */
47#define UTF8_POW_Y              "\xca\xb8"          /* superscript y */
48#define UTF8_PRIME              "\xca\xb9"          /* prime symbol */
49#define UTF8_DEGREES            "\xc2\xb0"          /* degrees symbol */
5350
54#define UTF8_LEFT           "\xe2\x86\x90"      /* cursor left */
55#define UTF8_RIGHT          "\xe2\x86\x92"      /* cursor right */
56#define UTF8_UP             "\xe2\x86\x91"      /* cursor up */
57#define UTF8_DOWN           "\xe2\x86\x93"      /* cursor down */
51#define UTF8_SMALL_PI           "\xcf\x80"          /* Greek small letter pi */
52#define UTF8_CAPITAL_SIGMA      "\xce\xa3"          /* Greek capital letter sigma */
53#define UTF8_CAPITAL_DELTA      "\xce\x94"          /* Greek capital letter delta */
5854
55#define UTF8_MACRON             "\xc2\xaf"          /* macron symbol */
56#define UTF8_NONSPACE_MACRON    "\xcc\x84"          /* nonspace macron, use before another char */
5957
58#define a_RING                  "\xc3\xa5"          /* small a with a ring */
59#define a_UMLAUT                "\xc3\xa4"          /* small a with an umlaut */
60#define o_UMLAUT                "\xc3\xb6"          /* small o with an umlaut */
61#define u_UMLAUT                "\xc3\xbc"          /* small u with an umlaut */
62#define e_ACUTE                 "\xc3\xa9"          /* small e with an acute */
6063
64#define A_RING                  "\xc3\x85"          /* capital A with a ring */
65#define A_UMLAUT                "\xc3\x84"          /* capital A with an umlaut */
66#define O_UMLAUT                "\xc3\x96"          /* capital O with an umlaut */
67#define U_UMLAUT                "\xc3\x9c"          /* capital U with an umlaut */
68#define E_ACUTE                 "\xc3\x89"          /* capital E with an acute */
69
70#define UTF8_LEFT               "\xe2\x86\x90"      /* cursor left */
71#define UTF8_RIGHT              "\xe2\x86\x92"      /* cursor right */
72#define UTF8_UP                 "\xe2\x86\x91"      /* cursor up */
73#define UTF8_DOWN               "\xe2\x86\x93"      /* cursor down */
74
75
76
6177/***************************************************************************
6278    TYPE DEFINITIONS
6379***************************************************************************/


Previous 199869 Revisions Next


© 1997-2024 The MAME Team