Re: 32-bit Unicode character literals

2009-04-27 Thread Stephen C. Gilardi
On Apr 27, 2009, at 10:07 AM, samppi wrote: I see. Does this mean that, if I expect to handle 32-bit characters, then I need to consider changing my character-handling functions to accept sequences of vectors instead? The blog post touches on this and searching around on Google and Wikipedi

Re: 32-bit Unicode character literals

2009-04-27 Thread Christophe Grand
samppi a écrit : > I see. Does this mean that, if I expect to handle 32-bit characters, > then I need to consider changing my character-handling functions to > accept sequences of vectors instead? > > Also, how does (seq "\ud800\udc00") work? Does it split the character > into two 16-bit character

Re: 32-bit Unicode character literals

2009-04-27 Thread samppi
I see. Does this mean that, if I expect to handle 32-bit characters, then I need to consider changing my character-handling functions to accept sequences of vectors instead? Also, how does (seq "\ud800\udc00") work? Does it split the character into two 16-bit characters? In the REPL, it seems to

Re: 32-bit Unicode character literals

2009-04-26 Thread Stephen C. Gilardi
On Apr 26, 2009, at 7:47 PM, samppi wrote: user=> \u1 java.lang.IllegalArgumentException: Invalid unicode character: \u1 How would I embed the character as a literal in my Clojure code? Java characters are (still) 16 bits wide. A single Java character cannot represent the Unicode ch

32-bit Unicode character literals

2009-04-26 Thread samppi
In the REPL: Clojure user=> \u0032 \2 user=> \u1 java.lang.IllegalArgumentException: Invalid unicode character: \u1 How would I embed the character as a literal in my Clojure code? --~--~-~--~~~---~--~~ You received this message because you are subscribed