[Seaside] [Q] [Scriptaculous and Comet] SUStream related question
yoshiki at squeakland.org
Fri Oct 13 22:39:10 UTC 2006
> > 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
More information about the Seaside