Re: [Vala] how can I get the number of unicode points in a string?



On Sun, Apr 03, 2011 at 03:59:23PM +0800, 琉璃井 wrote:
I see that since 0.11.0 vala string.length returns number of bytes rather than that of unicode characters, 
and string[i] returns only one byte. I wonder how to deal with east Asian character strings.

There are other methods in string that deal with utf8. For example
char_count() and next_char().

_______________________________________________
vala-list mailing list
vala-list gnome org
http://mail.gnome.org/mailman/listinfo/vala-list


-- 
http://www.debian.org - The Universal Operating System

Attachment: signature.asc
Description: Digital signature



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