Re: GtkTextBuffer:Compare text with those from GtkEntry



Le sam 26/06/2004 à 12:09, xiangbing a écrit :
> Hi,
> I try to write a program to test typing speed.I decide to use a GtkEntry wiget to get the input .The text in GtkTextBuffer is presetted and is shown in a GtkTextView wiget.If user's input is the same to the text in GtkTextBuffer,those text will be underlined.
> 
> My trouble is I don't know how to compare the text encoding in UTF-8 format.I wonder if there are some documents about gtkUTF-8 somewhere .Or if anyone can give me a brief hints ,that makes good ,too .
> 
> Thanks,
>   xiangbing

GLib has some potentially useful functions. See
http://developer.gnome.org/doc/API/2.0/glib/glib-Unicode-Manipulation.html

Attachment: signature.asc
Description: Ceci est une partie de message =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]