g_str_is_ascii()
- From: Claudio Saavedra <csaavedra alumnos utalca cl>
- To: gtk-app-devel-list gnome org
- Subject: g_str_is_ascii()
- Date: Thu, 19 May 2005 18:18:44 -0400
Hi list
I need to write a function to reject strings that are utf-8, i.e. accept
only convencional ascii strings.
I was wondering if there is any other way more nice than making a
gboolean
str_is_ascii (const gchar *str)
{
return (str (mystring) == g_utf8_strlen (str, -1));
}
Thanks in advance.
Claudio
--
Claudio Saavedra <csaavedra alumnos utalca cl>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]