From: Behdad Esfahbod Date: Thu, 3 May 2007 23:42:05 +0000 (+0000) Subject: svn path=/trunk/; revision=5482 X-Git-Tag: GLIB_2_13_2~28 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3ed6b66e8f7d9b865d945166928c6fdd5fd54e4a;p=platform%2Fupstream%2Fglib.git svn path=/trunk/; revision=5482 2007-05-03 Behdad Esfahbod * configure.in: * glib/glib.symbols: * glib/gthread.h: * glib/gunicode.h: * glib/guniprop.c (g_unichar_ismark): svn path=/trunk/; revision=5482 --- diff --git a/docs/reference/ChangeLog b/docs/reference/ChangeLog index e05e754..aa65d41 100644 --- a/docs/reference/ChangeLog +++ b/docs/reference/ChangeLog @@ -1,3 +1,9 @@ +2007-05-03 Behdad Esfahbod + + * glib/glib-sections.txt: + * glib/tmpl/messages.sgml: + Add g_unichar_ismark(). + 2007-05-03 Matthias Clasen * === Released 2.13.1 === diff --git a/docs/reference/glib/glib-sections.txt b/docs/reference/glib/glib-sections.txt index 6e79a9c..9b61bf8 100644 --- a/docs/reference/glib/glib-sections.txt +++ b/docs/reference/glib/glib-sections.txt @@ -2355,16 +2355,17 @@ g_unichar_validate g_unichar_isalnum g_unichar_isalpha g_unichar_iscntrl +g_unichar_isdefined g_unichar_isdigit g_unichar_isgraph g_unichar_islower +g_unichar_ismark g_unichar_isprint g_unichar_ispunct g_unichar_isspace +g_unichar_istitle g_unichar_isupper g_unichar_isxdigit -g_unichar_istitle -g_unichar_isdefined g_unichar_iswide g_unichar_iswide_cjk g_unichar_iszerowidth diff --git a/glib/glib.symbols b/glib/glib.symbols index 9a4dbbc..71e7fa9 100644 --- a/glib/glib.symbols +++ b/glib/glib.symbols @@ -1305,6 +1305,7 @@ g_unichar_iszerowidth G_GNUC_CONST g_unichar_tolower G_GNUC_CONST g_unichar_totitle G_GNUC_CONST g_unichar_toupper G_GNUC_CONST +g_unichar_ismark G_GNUC_CONST g_unichar_get_mirror_char g_unichar_get_script g_unichar_digit_value G_GNUC_CONST diff --git a/glib/gunicode.h b/glib/gunicode.h index 050045f..f8f6e1a 100644 --- a/glib/gunicode.h +++ b/glib/gunicode.h @@ -216,6 +216,7 @@ gboolean g_unichar_isdefined (gunichar c) G_GNUC_CONST; gboolean g_unichar_iswide (gunichar c) G_GNUC_CONST; gboolean g_unichar_iswide_cjk(gunichar c) G_GNUC_CONST; gboolean g_unichar_iszerowidth(gunichar c) G_GNUC_CONST; +gboolean g_unichar_ismark (gunichar c) G_GNUC_CONST; /* More functions. These convert between the three cases. * See the Unicode book to understand title case. */ diff --git a/glib/guniprop.c b/glib/guniprop.c index 7029037..f45d931 100644 --- a/glib/guniprop.c +++ b/glib/guniprop.c @@ -289,6 +289,30 @@ g_unichar_isspace (gunichar c) } /** + * g_unichar_ismark: + * @c: a Unicode character + * + * Determines whether a character is a mark (non-spacing mark, + * combining mark, or enclosing mark in Unicode speak). + * Given some UTF-8 text, obtain a character value + * with g_utf8_get_char(). + * + * Note: in most cases where isalpha characters are allowed, + * ismark characters should be allowed to as they are essential + * for writing most European languages as well as many non-Latin + * scripts. + * + * Return value: %TRUE if @c is a mark character + * + * Since: 2.14 + **/ +gboolean +g_unichar_ismark (gunichar c) +{ + return ISMARK (TYPE (c)); +} + +/** * g_unichar_isupper: * @c: a Unicode character *