From 95acb7c0d1411477660fe4d073c7278c59adc019 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Sat, 7 Jul 2012 23:53:23 +0200 Subject: [PATCH] unicode: Add new line breaking class from unicode 6.2 Regional Indicator (RI) is new in unicode 6.2. https://bugzilla.gnome.org/show_bug.cgi?id=684912 --- glib/gen-unicode-tables.pl | 1 + glib/gunicode.h | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/glib/gen-unicode-tables.pl b/glib/gen-unicode-tables.pl index f2b923774..d111d910c 100755 --- a/glib/gen-unicode-tables.pl +++ b/glib/gen-unicode-tables.pl @@ -143,6 +143,7 @@ $FOLDING_MAPPING = 2; 'PO' => "G_UNICODE_BREAK_POSTFIX", 'PR' => "G_UNICODE_BREAK_PREFIX", 'QU' => "G_UNICODE_BREAK_QUOTATION", + 'RI' => "G_UNICODE_BREAK_REGIONAL_INDICATOR", 'SA' => "G_UNICODE_BREAK_COMPLEX_CONTEXT", 'SG' => "G_UNICODE_BREAK_SURROGATE", 'SP' => "G_UNICODE_BREAK_SPACE", diff --git a/glib/gunicode.h b/glib/gunicode.h index f9c2fd567..aee99135a 100644 --- a/glib/gunicode.h +++ b/glib/gunicode.h @@ -201,13 +201,12 @@ typedef enum * @G_UNICODE_BREAK_CLOSE_PARANTHESIS: Closing Parenthesis (CP). Since 2.28 * @G_UNICODE_BREAK_CONDITIONAL_JAPANESE_STARTER: Conditional Japanese Starter (CJ). Since: 2.32 * @G_UNICODE_BREAK_HEBREW_LETTER: Hebrew Letter (HL). Since: 2.32 + * @G_UNICODE_BREAK_REGIONAL_INDICATOR: Regional Indicator (RI). Since: 2.36 * * These are the possible line break classifications. * - * The five Hangul types were added in Unicode 4.1, so, has been - * introduced in GLib 2.10. Note that new types may be added in the future. - * Applications should be ready to handle unknown values. - * They may be regarded as %G_UNICODE_BREAK_UNKNOWN. + * Since new unicode versions may add new types here, applications should be ready + * to handle unknown values. They may be regarded as %G_UNICODE_BREAK_UNKNOWN. * * See http://www.unicode.org/unicode/reports/tr14/. */ @@ -251,7 +250,8 @@ typedef enum G_UNICODE_BREAK_HANGUL_LVT_SYLLABLE, G_UNICODE_BREAK_CLOSE_PARANTHESIS, G_UNICODE_BREAK_CONDITIONAL_JAPANESE_STARTER, - G_UNICODE_BREAK_HEBREW_LETTER + G_UNICODE_BREAK_HEBREW_LETTER, + G_UNICODE_BREAK_REGIONAL_INDICATOR } GUnicodeBreakType; /**