[Seaside] [Q] [Scriptaculous and Comet] SUStream related question

Philippe Marschall philippe.marschall at gmail.com
Fri Oct 13 23:31:58 UTC 2006


2006/10/14, Yoshiki Ohshima <yoshiki at squeakland.org>:
>   Philippe,
>
> > > asUnicode returns unicode value of a given character, asInteger returns
> > > (rather meaningless) squeak only definition of value of character.
> >
> > Oh no. On >= 3.8 #asInteger returns the unicode code point. Which is
> > _exactly_ what you need.
>
>   asInteger doesn't return the unicode code point.  Since Unicode is a
> 21-bit character set, we have otherwise unused bits in a word.  At the
> same time, bare Unicode character lacks the information (basically)
> how to present themselves.  So, we put a few more bits there to
> distinguish some "unified" characters.
>
>   There is a method called #charCode, that gives you the bare Unicode
> code point.  #leadingChar returns the upper bits that denotes the
> "language tag".

Ooops, didn't know that. Learned something. Thanks.

Philippe


More information about the Seaside mailing list