aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-unicode.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2001-09-02 10:14:04 +0800
committerChris Lahey <clahey@src.gnome.org>2001-09-02 10:14:04 +0800
commit03a5d4a3d316d8ec923d7bde331b1e96d08c6720 (patch)
tree6a473614fe67e768840d6534de43bb7c9dcf40c2 /widgets/misc/e-unicode.c
parentf596201cda9c84ad3cf636d95dea31658840c75a (diff)
downloadgsoc2013-evolution-03a5d4a3d316d8ec923d7bde331b1e96d08c6720.tar.gz
gsoc2013-evolution-03a5d4a3d316d8ec923d7bde331b1e96d08c6720.tar.zst
gsoc2013-evolution-03a5d4a3d316d8ec923d7bde331b1e96d08c6720.zip
Bumped the version number to 0.11.99.2 for new e_utf8 functions.
2001-09-01 Christopher James Lahey <clahey@ximian.com> * configure.in: Bumped the version number to 0.11.99.2 for new e_utf8 functions. * gal/widgets/e-unicode.c, gal/widgets/e-unicode.h (e_utf8_is_ascii): Added this function. Reformatted. svn path=/trunk/; revision=12557
Diffstat (limited to 'widgets/misc/e-unicode.c')
-rw-r--r--widgets/misc/e-unicode.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/widgets/misc/e-unicode.c b/widgets/misc/e-unicode.c
index edb7d3ee17..93130741d1 100644
--- a/widgets/misc/e-unicode.c
+++ b/widgets/misc/e-unicode.c
@@ -577,6 +577,21 @@ e_utf8_to_locale_string (const gchar *string)
return e_utf8_to_locale_string_sized (string, strlen (string));
}
+gboolean
+e_utf8_is_ascii (const gchar *string)
+{
+ char c;
+
+ g_return_val_if_fail (string != NULL, FALSE);
+
+ for (; (c = *string); string++) {
+ if (c & 0x80)
+ return FALSE;
+ }
+
+ return TRUE;
+}
+
gchar *
e_utf8_gtk_entry_get_text (GtkEntry *entry)
{