[Jprogramming] 6 u: inv?
Raul Miller
rauldmiller at gmail.com
Mon Jul 4 09:48:29 HKT 2011
Ok, that works, conceptually anyways. And:
u6i=:a.,@:{~256 256|.@#:3 u:]
works for me.
And I am not concerned about the negative values, I do not use them.
Thanks,
--
Raul
On Sun, Jul 3, 2011 at 6:31 PM, Don Guinn <donguinn at gmail.com> wrote:
> How about
>
> u6i=:a.{~256 256#:3 u:]
>
> But I am a little confused when 4 u: says that wchar has a range of _65536
> to 65535 as representing _65536 requires 16 bits in addition of the sign. No
> way to convert the negative values to a pair of characters.
>
> On Sun, Jul 3, 2011 at 2:32 PM, Raul Miller <rauldmiller at gmail.com> wrote:
>
>> What is the inverse of 6 u:?
>>
>> In other words, I have wide characters and I want character pairs, how
>> do I generate them?
>>
>> Thanks,
>>
>> --
>> Raul
>> ----------------------------------------------------------------------
>> For information about J forums see http://www.jsoftware.com/forums.htm
>>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
More information about the Programming
mailing list