johann Sorel | 27 Oct 2011 09:40
Favicon

Re: Unicode support


Thanks for the answer.

since strings are basicly 'byte buffers', how can I manipulate then as 'bytes'.
for example :
- get me the 2nd byte value ?
- replace the 3rd byte by this one ?
- concatenate an array of bytes ?
(I'm talking about bytes but it's actually ints in nekovm)

or perhaps there is  a more convinient type for this ? 
some kind of bytestream/bytebuffer ?

thanks

johann

> -----Original Message-----
> From: me <at> thehippo.de
> Sent: Thu, 27 Oct 2011 00:52:55 +0200
> To: neko <at> lists.motion-twin.com
> Subject: Re: [Neko] Unicode support
> 
> I dont think there will be native unicode support, because neko is meant
> to be a language written by compilers (e.g. haXe) so unicode support is
> handled by the higher language.
> But there is support for utf8 buffers: http://nekovm.org/doc/view/utf8
> 
> Am 26.10.2011 22:42, schrieb johann Sorel:
>> Good evening (again),
(Continue reading)

Nicolas Cannasse | 27 Oct 2011 10:39
Favicon
Gravatar

Re: Unicode support

Le 27/10/2011 09:40, johann Sorel a écrit :
>
> Thanks for the answer.
>
> since strings are basicly 'byte buffers', how can I manipulate then as 'bytes'.
> for example :
> - get me the 2nd byte value ?
> - replace the 3rd byte by this one ?
> - concatenate an array of bytes ?
> (I'm talking about bytes but it's actually ints in nekovm)

Check http://nekovm.org/doc/view/builtins (string builtins)

> or perhaps there is  a more convinient type for this ?
> some kind of bytestream/bytebuffer ?

Check http://nekovm.org/doc/view/buffer

Best,
Nicolas

--

-- 
Neko : One VM to run them all
(http://nekovm.org)


Gmane