can HEX_DIGIT_SEQUENCE not run yet?

5 views
Skip to first unread message

Usagi Ito ( @USAGI_WRP )

unread,
Mar 16, 2012, 4:57:49 AM3/16/12
to General Dart Discussion
hi, folks.

I'm reading the spec 0.07, and tried HEX_DIGIT_SEQUENCE with DartVM
and dartboard. but I cannot run it. Is the problem my source code and
understanding the spec? or bug of the Dart VM or not implement yet?

code sample:
http://try.dartlang.org/s/C4Iy

it's ok at the line 3 as an unicode HEX_DIGIT pattern. but, comment
out the line 3 and uncomment the line 4 to get an error.

thanks.

Lasse R.H. Nielsen

unread,
Mar 16, 2012, 12:36:58 PM3/16/12
to Usagi Ito ( @USAGI_WRP ), General Dart Discussion
On Fri, Mar 16, 2012 at 09:57, Usagi Ito ( @USAGI_WRP )
<us...@wonderrabbitproject.net> wrote:
>
> code sample:
> http://try.dartlang.org/s/C4Iy
>
> it's ok at the line 3 as an unicode HEX_DIGIT pattern. but, comment
> out the line 3 and uncomment the line 4 to get an error.

You write
"\u{00a9 00a9 00a9}"
The \u{..} format only represents a single character, so you should
only put a single hexadecimal number in there. That number can have a
length from 1 to 6 digits, e.g.,
"\u{a9}\u{00a9}\u{0000a9}"
It's rarely shorter than plain \uXXXX, but you can represent
characters outside the basic multilingual plane (i.e., with code
points above 0xffff).
Example:
"\u{1F4A9}"

/L
--
Lasse R.H. Nielsen
l...@google.com
'Faith without judgement merely degrades the spirit divine'
Google Denmark ApS - Frederiksborggade 20B, 1 sal - 1360 København K -
Denmark - CVR nr. 28 86 69 84

Usagi Ito ( @USAGI_WRP )

unread,
Mar 16, 2012, 1:34:57 PM3/16/12
to General Dart Discussion
Thanks for your answer, it's clearly!

I realized I was mistaken about the task of HEX_DIGIT_SEQUENCE and the
semantic of the SEQUENCE.

thank you :)
Reply all
Reply to author
Forward
0 new messages