svn path=/trunk/; revision=5482
authorBehdad Esfahbod <behdad@gnome.org>
Thu, 3 May 2007 23:42:05 +0000 (23:42 +0000)
committerBehdad Esfahbod <behdad@src.gnome.org>
Thu, 3 May 2007 23:42:05 +0000 (23:42 +0000)
2007-05-03  Behdad Esfahbod  <behdad@gnome.org>

        * configure.in:
        * glib/glib.symbols:
        * glib/gthread.h:
        * glib/gunicode.h:
        * glib/guniprop.c (g_unichar_ismark):

svn path=/trunk/; revision=5482

docs/reference/ChangeLog
docs/reference/glib/glib-sections.txt
glib/glib.symbols
glib/gunicode.h
glib/guniprop.c

index e05e754..aa65d41 100644 (file)
@@ -1,3 +1,9 @@
+2007-05-03  Behdad Esfahbod  <behdad@gnome.org>
+
+       * glib/glib-sections.txt:
+       * glib/tmpl/messages.sgml:
+       Add g_unichar_ismark().
+
 2007-05-03  Matthias Clasen <mclasen@redhat.com>
 
        * === Released 2.13.1 ===
index 6e79a9c..9b61bf8 100644 (file)
@@ -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
index 9a4dbbc..71e7fa9 100644 (file)
@@ -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
index 050045f..f8f6e1a 100644 (file)
@@ -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 <ctype.h> functions.  These convert between the three cases.
  * See the Unicode book to understand title case.  */
index 7029037..f45d931 100644 (file)
@@ -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
  *