jed-users mailing list

[2003 Date Index] [2003 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: slang: UTF-8 and strlen


This makes perfect sense.

--Eugene

--- "John E. Davis" <davis@xxxxxxxxxxxxx> wrote:
> Hence, I propose the
> following for slang v2:
> 
>   strlen: returns the number of characters (not bytes!) in a string.
>           Any combining characters will not be included in the sum.
> 
> In addition, I propose two new functions:
> 
>   strbytelen: Returns the number of bytes in a string.
> 
>   strcharlen: Returns the number of chars in a string, counting the
>               combining characters.
> 


=====
---
Eugene Epshteyn
Eugene_Epshteyn@xxxxxxxxx
http://www.epshteyn.net

--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.


[2003 date index] [2003 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]