summaryrefslogtreecommitdiff
path: root/unicode_constants.h
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2013-03-02 20:43:56 -0700
committerKarl Williamson <public@khwilliamson.com>2013-03-08 10:19:16 -0700
commit1dfa4f529a4cb0bb101513bad440ca3ef7b553d8 (patch)
tree6be4fefe5cb2d4af0db8fea7e6c002b69083412f /unicode_constants.h
parent5e250d2c6a5f45c36f5dfcf70e02931161e97695 (diff)
downloadperl-1dfa4f529a4cb0bb101513bad440ca3ef7b553d8.tar.gz
regen/unicode_constants.pl: Make portable to non-ASCII
This now uses the U+ notation to indicate code points, which is unambiguous not matter what the platform's character set is. (charnames accepts the U+ notation)
Diffstat (limited to 'unicode_constants.h')
-rw-r--r--unicode_constants.h27
1 files changed, 14 insertions, 13 deletions
diff --git a/unicode_constants.h b/unicode_constants.h
index f05f853a9b..487b82c26d 100644
--- a/unicode_constants.h
+++ b/unicode_constants.h
@@ -20,23 +20,24 @@
* "_TAIL" if instead it represents all but the first byte. This, and
* with no additional suffix are both string constants */
-#define COMBINING_GRAVE_ACCENT_UTF8 "\xCC\x80" /* U+0300 */
-#define COMBINING_ACUTE_ACCENT_UTF8 "\xCC\x81" /* U+0301 */
-#define COMBINING_DIAERESIS_UTF8 "\xCC\x88" /* U+0308 */
-#define GREEK_SMALL_LETTER_IOTA_UTF8 "\xCE\xB9" /* U+03B9 */
+#define COMBINING_GRAVE_ACCENT_UTF8 "\xCC\x80" /* U+0300 */
+#define COMBINING_ACUTE_ACCENT_UTF8 "\xCC\x81" /* U+0301 */
+#define COMBINING_DIAERESIS_UTF8 "\xCC\x88" /* U+0308 */
-#define GREEK_SMALL_LETTER_UPSILON_UTF8 "\xCF\x85" /* U+03C5 */
+#define GREEK_SMALL_LETTER_IOTA_UTF8 "\xCE\xB9" /* U+03B9 */
-#define HYPHEN_UTF8 "\xE2\x80\x90" /* U+2010 */
-#define FIRST_SURROGATE_UTF8_FIRST_BYTE 0xED /* U+D800 */
+#define GREEK_SMALL_LETTER_UPSILON_UTF8 "\xCF\x85" /* U+03C5 */
-#define DELETE_NATIVE 0x007F /* U+007F */
-#define LATIN_SMALL_LETTER_SHARP_S_NATIVE 0x00DF /* U+00DF */
-#define LATIN_SMALL_LETTER_A_WITH_RING_ABOVE_NATIVE 0x00E5 /* U+00E5 */
-#define LATIN_CAPITAL_LETTER_A_WITH_RING_ABOVE_NATIVE 0x00C5 /* U+00C5 */
-#define LATIN_SMALL_LETTER_Y_WITH_DIAERESIS_NATIVE 0x00FF /* U+00FF */
-#define MICRO_SIGN_NATIVE 0x00B5 /* U+00B5 */
+#define HYPHEN_UTF8 "\xE2\x80\x90" /* U+2010 */
+#define FIRST_SURROGATE_UTF8_FIRST_BYTE 0xED /* U+D800 */
+
+#define DELETE_NATIVE 0x7F /* U+007F */
+#define LATIN_SMALL_LETTER_SHARP_S_NATIVE 0xDF /* U+00DF */
+#define LATIN_SMALL_LETTER_A_WITH_RING_ABOVE_NATIVE 0xE5 /* U+00E5 */
+#define LATIN_CAPITAL_LETTER_A_WITH_RING_ABOVE_NATIVE 0xC5 /* U+00C5 */
+#define LATIN_SMALL_LETTER_Y_WITH_DIAERESIS_NATIVE 0xFF /* U+00FF */
+#define MICRO_SIGN_NATIVE 0xB5 /* U+00B5 */
#endif /* H_UNICODE_CONSTANTS */