On Jun 07 at 00:04 RebOldes wrote:
> R> nobody has utf8-encoder?
> R> probably will have to write one by myself
[cut code]
Very clever... but it's not utf-8. Don't you think you should
translate ISO-2 characters into UTC-2 encoding?
ethanak
--
To unsubscribe from this list, please send a
--- RebOldes <[EMAIL PROTECTED]> wrote:
> shift: func [
> "Takes a base-2 binary string and shifts bits"
> data [string! binary!] places [integer!] /left
> /right
> ][
> data: enbase/base data 2
> either right [
> remove/part tail data negate places
> data: he
Am Freitag, 7. Juni 2002 00:04 schrieb RebOldes:
> R> nobody has utf8-encoder?
> R> probably will have to write one by myself
>
> ok... why there is NO native right/left shift function in Rebol?!
>
because it can be replaced by multiplication/division with powers of 2? is
rarely needed, and
R> nobody has utf8-encoder?
R> probably will have to write one by myself
ok... why there is NO native right/left shift function in Rebol?!
here is how utf8 works:
putwchar(c)
{
if (c < 0x80) {
putchar (c);
}
else if (c < 0x800) {
putchar (0xC0 | c>>6);
putchar (0x80 | c & 0