String::Utf8Value::length() returns the length in bytes not
characters (see String::Utf8Value::Utf8Value).
Regards,
Søren

On Fri, Feb 27, 2009 at 12:59 AM, Stephan Beal <[email protected]>wrote:

>
> Hi v8'ers!
>
> Is String::Utf8Value::length() measured in bytes or characters? (utf8
> is a multi-byte encoding) (And why is it of type 'int' instead of an
> unsigned type?)
>
> :-?
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to