RE: Non-ascii string processing?

From: John Delacour (JD@BD8.COM)
Date: Mon Oct 06 2003 - 07:15:02 CST


At 12:09 pm +0200 6/10/03, Marco Cimarosti wrote:

> What strlen() cannot do is countīng the number of *characters* in a string.
> But who cares? I can imagine very few situations where someone such an
> information would be useful.

#!/usr/bin/perl
print "ab, \x{aaaa}\x{aaab}" ;
printf "\n%s, %s", length "ab" , length "\x{aaaa}\x{aaab}" ;

ab, ĶĶ“
2, 2



This archive was generated by hypermail 2.1.5 : Thu Jan 18 2007 - 15:54:24 CST