diff options
author | Christian Persch <chpe@gnome.org> | 2012-09-02 22:25:53 +0200 |
---|---|---|
committer | Christian Persch <chpe@gnome.org> | 2012-09-17 16:02:44 +0200 |
commit | aa610d0faa040eff27cb91ac5eaa72195808d5cf (patch) | |
tree | 3d2e23592d170aecffc2265a6e9b8f63c9d7e9d4 /glib/gunicode.h | |
parent | 7c7fe30485bbf0fb136f354babc96446ad317c18 (diff) | |
download | glib-wip/unicode-graphemebreak.tar.gz |
unicode: Add API to access data from GraphemeBreakPropertywip/unicode-graphemebreak
Diffstat (limited to 'glib/gunicode.h')
-rw-r--r-- | glib/gunicode.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/glib/gunicode.h b/glib/gunicode.h index 15c4bc56b..6b75f7a5f 100644 --- a/glib/gunicode.h +++ b/glib/gunicode.h @@ -506,6 +506,44 @@ typedef enum G_UNICODE_SCRIPT_TAKRI /* Takr */ } GUnicodeScript; +/** + * GUnicodeGraphemeClusterBreakType: + * + * These are the grapheme cluster break types. + * + * @G_UNICODE_GRAPHEME_CLUSTER_BREAK_OTHER: + * @G_UNICODE_GRAPHEME_CLUSTER_BREAK_CR: Carriage Return + * @G_UNICODE_GRAPHEME_CLUSTER_BREAK_LF: Line Feed + * @G_UNICODE_GRAPHEME_CLUSTER_BREAK_CONTROL: Control + * @G_UNICODE_GRAPHEME_CLUSTER_BREAK_SPACING_MARK: Spacing Mark + * @G_UNICODE_GRAPHEME_CLUSTER_BREAK_EXTEND: Extend + * @G_UNICODE_GRAPHEME_CLUSTER_BREAK_PREPEND: Prepend + * @G_UNICODE_GRAPHEME_CLUSTER_BREAK_REGIONAL_INDICATOR: Regional Indicator + * @G_UNICODE_GRAPHEME_CLUSTER_BREAK_HANGUL_SYLLABLE_L: Hangul L Syllable + * @G_UNICODE_GRAPHEME_CLUSTER_BREAK_HANGUL_SYLLABLE_V: Hangul T Syllable + * @G_UNICODE_GRAPHEME_CLUSTER_BREAK_HANGUL_SYLLABLE_T: Hangul V Syllable + * @G_UNICODE_GRAPHEME_CLUSTER_BREAK_HANGUL_SYLLABLE_LV: Hangul LV Syllable + * @G_UNICODE_GRAPHEME_CLUSTER_BREAK_HANGUL_SYLLABLE_LVT: Hangul LVT Syllable + * + * Since: 2.36 + */ +typedef enum +{ + G_UNICODE_GRAPHEME_CLUSTER_BREAK_OTHER = 0, + G_UNICODE_GRAPHEME_CLUSTER_BREAK_CR, + G_UNICODE_GRAPHEME_CLUSTER_BREAK_LF, + G_UNICODE_GRAPHEME_CLUSTER_BREAK_CONTROL, + G_UNICODE_GRAPHEME_CLUSTER_BREAK_SPACING_MARK, + G_UNICODE_GRAPHEME_CLUSTER_BREAK_EXTEND, + G_UNICODE_GRAPHEME_CLUSTER_BREAK_PREPEND, + G_UNICODE_GRAPHEME_CLUSTER_BREAK_REGIONAL_INDICATOR, + G_UNICODE_GRAPHEME_CLUSTER_BREAK_HANGUL_SYLLABLE_L, + G_UNICODE_GRAPHEME_CLUSTER_BREAK_HANGUL_SYLLABLE_V, + G_UNICODE_GRAPHEME_CLUSTER_BREAK_HANGUL_SYLLABLE_T, + G_UNICODE_GRAPHEME_CLUSTER_BREAK_HANGUL_SYLLABLE_LV, + G_UNICODE_GRAPHEME_CLUSTER_BREAK_HANGUL_SYLLABLE_LVT +} GUnicodeGraphemeClusterBreakType; + guint32 g_unicode_script_to_iso15924 (GUnicodeScript script); GUnicodeScript g_unicode_script_from_iso15924 (guint32 iso15924); @@ -547,6 +585,9 @@ GUnicodeType g_unichar_type (gunichar c) G_GNUC_CONST; /* Return the line break property for a given character */ GUnicodeBreakType g_unichar_break_type (gunichar c) G_GNUC_CONST; +/* Return the grapheme cluster break property for a given character */ +GUnicodeGraphemeClusterBreakType g_unichar_grapheme_cluster_break_type (gunichar c) G_GNUC_CONST; + /* Returns the combining class for a given character */ gint g_unichar_combining_class (gunichar uc) G_GNUC_CONST; |