List Info

Thread: Re: Problem with x caracters ?




Re: Problem with x caracters ?
user name
2007-02-26 10:29:39
On 1/6/07, Nicolas Cannasse <ncannassemotion-twin.com> wrote:
> > hello 
> >
> > the caractere x failed .. i don't speak about 

>
> "x" is an invalid escape sequence which
MTASC refuses. You might prefer
> to write "\x", because writing
"x00" is a way to specify an
> hexadecimal character code in many languages.
>

"x00" is a perfect valid escape sequence per
ECMA-262 spec
see chapter 7.8.4 String literals

HexEscapeSequence
x HexDigit HexDigit

and if I remember well "" is valid but will
result in the empty string
and "x" is also valid it will simply escape a
single char an so give
"x" as a result

eka:
maybe you can try with the unicode escape sequence
"u0006" instead of "x06"

cheers,
zwetan

-- 
MTASC : no more coffee break while compiling

Re: Problem with \x caracters ?
user name
2007-02-26 13:01:53
Hello

yes , in the ASTUce unit tests i must disabled the "x&quot; evaluations for the moment, i'm trying to use the "u0006"

Thanks ;)

EKA+

2007/2/26, zwetan < zwetan+MTASCgmail.com">zwetan+MTASCgmail.com>:
On 1/6/07, Nicolas Cannasse < ncannassemotion-twin.com">ncannassemotion-twin.com> wrote:
>; > hello
> >
> > the caractere x failed .. i don't speak about
>
&gt; "x&quot; is an invalid escape sequence which MTASC refuses. You might prefer
>; to write "\x&quot;, because writing "x00&quot; is a way to specify an
> hexadecimal character code in many languages.
>

&quot;x00&quot; is a perfect valid escape sequence per ECMA-262 spec
see chapter 7.8.4 String literals

HexEscapeSequence
x HexDigit HexDigit

and if I remember well "&quot; is valid but will result in the empty string
and "x&quot; is also valid it will simply escape a single char an so give
";x" as a result

eka:
maybe you can try with the unicode escape sequence
&quot;u0006&quot; instead of "x06&quot;

cheers,
zwetan

--
MTASC : no more coffee break while compiling

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )