This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Fw: Unicode escapes...

1 reply
in.imtiaz
Joined: 2009-08-05,
User offline. Last seen 1 year 10 weeks ago.
Sorry if too rudimentary for this list...   Could someone please give an informed, complete explanation...   Thanks, Regards, Imtiaz   Imtiaz Ahmed H E Bangalore, India   ----- Original Message ----- From: dcsobral [at] gmail [dot] com (Daniel Sobral) To: in [dot] imtiaz [at] gmail [dot] com (Imtiaz Ahmed H E) Cc: scala-user [at] listes [dot] epfl [dot] ch Sent: Saturday, May 15, 2010 9:04 PM Subject: Re: [scala-user] Unicode escapes...
You can have multiple "u" and it will still be an unicode escape. I tried having multiple double backslash after the first (ie, odd number of backslashes) but that didn't work for me.
Why? Beats me.

On Sat, May 15, 2010 at 6:05 AM, Imtiaz Ahmed H E <in [dot] imtiaz [at] gmail [dot] com> wrote:
The Scala language specification says,   UnicodeEscape ::= \{\\}u{u} hexDigit hexDigit hexDigit hexDigit

Would deeply appreciate someone letting me know what \{\\}u{u} means ? I mean, what do the optional repetitions of \\ and u following the 1st \ and u respectively, mean ?

Apoogies, maybe has to do with me not knowing the Unicode standard much !

Thanks,

Imtiaz

Imtiaz Ahmed H E

Bangalore, India




--
Daniel C. Sobral

I travel to the future all the time.
in.imtiaz
Joined: 2009-08-05,
User offline. Last seen 1 year 10 weeks ago.
Re: Unicode escapes...
Deeply sorry for the unnecessary query... The Java Language Specification explains the syntax....   Thanks for your attention, Imtiaz Imtiaz Ahmed H E Bangalore, India   ----- Original Message -----
From: in [dot] imtiaz [at] gmail [dot] com" href="mailto:in [dot] imtiaz [at] gmail [dot] com" rel="nofollow">Imtiaz Ahmed H E To: scala [at] listes [dot] epfl [dot] ch Sent: Sunday, May 16, 2010 7:16 AM Subject: Fw: [scala-user] Unicode escapes...
Sorry if too rudimentary for this list...   Could someone please give an informed, complete explanation...   Thanks, Regards, Imtiaz   Imtiaz Ahmed H E Bangalore, India   ----- Original Message ----- From: dcsobral [at] gmail [dot] com (Daniel Sobral) To: in [dot] imtiaz [at] gmail [dot] com (Imtiaz Ahmed H E) Cc: scala-user [at] listes [dot] epfl [dot] ch Sent: Saturday, May 15, 2010 9:04 PM Subject: Re: [scala-user] Unicode escapes...
You can have multiple "u" and it will still be an unicode escape. I tried having multiple double backslash after the first (ie, odd number of backslashes) but that didn't work for me.
Why? Beats me.

On Sat, May 15, 2010 at 6:05 AM, Imtiaz Ahmed H E <in [dot] imtiaz [at] gmail [dot] com> wrote:
The Scala language specification says,   UnicodeEscape ::= \{\\}u{u} hexDigit hexDigit hexDigit hexDigit

Would deeply appreciate someone letting me know what \{\\}u{u} means ? I mean, what do the optional repetitions of \\ and u following the 1st \ and u respectively, mean ?

Apoogies, maybe has to do with me not knowing the Unicode standard much !

Thanks,

Imtiaz

Imtiaz Ahmed H E

Bangalore, India




--
Daniel C. Sobral

I travel to the future all the time.

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland