Re: [racket-users] Constructing unicode surrogates

2016-10-08 Thread Jens Axel Søgaard
2016-10-08 20:00 GMT+02:00 Ryan Culpepper : > Does one of the `string-normalize-*` functions do what you want? > No. I am basically implementing the part of the reader that lexes string literals. I want to allow full Racket syntax in the string literals in my infix package.

Re: [racket-users] Constructing unicode surrogates

2016-10-08 Thread Jens Axel Søgaard
Thanks, I can work with that. /Jens Axel 2016-10-08 19:44 GMT+02:00 Jon Zeppieri : > > > On Sat, Oct 8, 2016 at 1:06 PM, Jens Axel Søgaard > wrote: > >> Hi All, >> >> The following interaction shows how the reader can be used to construct a >>

Re: [racket-users] Constructing unicode surrogates

2016-10-08 Thread Ryan Culpepper
Does one of the `string-normalize-*` functions do what you want? Ryan On 10/08/2016 01:06 PM, Jens Axel Søgaard wrote: Hi All, The following interaction shows how the reader can be used to construct a surrogate character: > (string-ref "\ud800\udc00" 0) #\ Given the two

Re: [racket-users] Constructing unicode surrogates

2016-10-08 Thread Jon Zeppieri
On Sat, Oct 8, 2016 at 1:06 PM, Jens Axel Søgaard wrote: > Hi All, > > The following interaction shows how the reader can be used to construct a > surrogate character: > > > (string-ref "\ud800\udc00" 0) > #\ > > Given the two hexadecimal numbers d800 and dc00 how

[racket-users] Constructing unicode surrogates

2016-10-08 Thread Jens Axel Søgaard
Hi All, The following interaction shows how the reader can be used to construct a surrogate character: > (string-ref "\ud800\udc00" 0) #\ Given the two hexadecimal numbers d800 and dc00 how do I construct the surrogate character directly? /Jens Axel -- You received this message