Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: question about referenced character set

question about referenced character set 13 Sep 2007 10:21 #7237

In the core language, B.1.5.4, there is an example as follow:
EXAMPLE:
type charstring MyCharRange ("a".."z");
type charstring MyCharList ("a", "z");
const MyCharRange myCharR := "r";
template charstring myTempPatt1 := pattern "\N { myCharR }";
// myTempPatt1 shall match the string "r" only
template charstring myTempPatt2 := pattern "\N { MyCharRange }";
// myTempPatt2 shall match any string containing a single character from a
to z
template MyCharRange myTempPatt3 := pattern "\N { MyCharList }";
// myTempPatt3 shall match strings "a" and "r" only
template MyCharList myTempPatt4 := pattern "\N { MyCharRange }";
// myTempPatt4 shall match strings "a" and "r" only

Here I think the last two templates' comments are wrong.
For myTempPatt3, I think it shall match strings "a" and "z" only. I can't
reason "r".
And as above, I think myTempPatt4 shall match strings "a" and "z" only. not
"r".

how do you think?
thanks.

--xing xuezhi
The administrator has disabled public write access.

question about referenced character set 13 Sep 2007 11:06 #7238

Hi Xing,



You are correct. I believe this is simply a typo. The "r" should be
replaced with "z" in both myTempPatt3 and myTempPatt4.



In both cases the limiting factor is the MyCharList



Please write an appropriate CR if one has not already been submitted for
this oversight. Probably because the "r" is directly below the "z" in the
original type definition :-)



Cheers,



Claude.





Blue Cactus Consulting phone: +49 (0)30 9606 7985

Edinburger Str. 39 fax: +49 (0)30 9606 7987

13349 Berlin mobile: +49 (0)174 701 6792

Germany email: This email address is being protected from spambots. You need JavaScript enabled to view it.



_____

From: active_ttcn3 : mts stf133 ttcn version 3 - active members only
[This email address is being protected from spambots. You need JavaScript enabled to view it.] On Behalf Of xuezhi xing
Sent: 13 September 2007 12:21
To: This email address is being protected from spambots. You need JavaScript enabled to view it.
Subject: question about referenced character set



In the core language, B.1.5.4, there is an example as follow:
EXAMPLE:
type charstring MyCharRange ("a".."z");
type charstring MyCharList ("a", "z");
const MyCharRange myCharR := "r";
template charstring myTempPatt1 := pattern "\N { myCharR }";
// myTempPatt1 shall match the string "r" only
template charstring myTempPatt2 := pattern "\N { MyCharRange }";
// myTempPatt2 shall match any string containing a single character from a
to z
template MyCharRange myTempPatt3 := pattern "\N { MyCharList }";
// myTempPatt3 shall match strings "a" and "r" only
template MyCharList myTempPatt4 := pattern "\N { MyCharRange }";
// myTempPatt4 shall match strings "a" and "r" only

Here I think the last two templates' comments are wrong.
For myTempPatt3, I think it shall match strings "a" and "z" only. I can't
reason "r".
And as above, I think myTempPatt4 shall match strings "a" and "z" only. not
"r".

how do you think?
thanks.

--xing xuezhi
The administrator has disabled public write access.

question about referenced character set 14 Sep 2007 00:44 #7239

I can't access the Mantis web.

Does it work well?

2007/9/13, Claude Desroches <This email address is being protected from spambots. You need JavaScript enabled to view it.>:
>
> Hi Xing,
>
>
>
> You are correct. I believe this is simply a typo. The "r" should be
> replaced with "z" in both myTempPatt3 and myTempPatt4.
>
>
>
> In both cases the limiting factor is the MyCharList
>
>
>
> Please write an appropriate CR if one has not already been submitted for
> this oversight. Probably because the "r" is directly below the "z" in the
> original type definition J
>
>
>
> Cheers,
>
>
>
> Claude.
>
>
>
>
>
> Blue Cactus Consulting phone: +49 (0)30 9606 7985
>
> Edinburger Str. 39 fax: +49 (0)30 9606 7987
>
> 13349 Berlin mobile: +49 (0)174 701 6792
>
> Germany email: This email address is being protected from spambots. You need JavaScript enabled to view it.
>
>
>
>
> *From:* active_ttcn3 : mts stf133 ttcn version 3 - active members only
> [This email address is being protected from spambots. You need JavaScript enabled to view it.] *On Behalf Of *xuezhi xing
> *Sent:* 13 September 2007 12:21
> *To:* This email address is being protected from spambots. You need JavaScript enabled to view it.
> *Subject:* question about referenced character set
>
>
>
> In the core language, B.1.5.4, there is an example as follow:
> EXAMPLE:
> type charstring MyCharRange ("a".."z");
> type charstring MyCharList ("a", "z");
> const MyCharRange myCharR := "r";
> template charstring myTempPatt1 := pattern "\N { myCharR }";
> // myTempPatt1 shall match the string "r" only
> template charstring myTempPatt2 := pattern "\N { MyCharRange }";
> // myTempPatt2 shall match any string containing a single character from a
> to z
> template MyCharRange myTempPatt3 := pattern "\N { MyCharList }";
> // myTempPatt3 shall match strings "a" and "r" only
> template MyCharList myTempPatt4 := pattern "\N { MyCharRange }";
> // myTempPatt4 shall match strings "a" and "r" only
>
> Here I think the last two templates' comments are wrong.
> For myTempPatt3, I think it shall match strings "a" and "z" only. I can't
> reason "r".
> And as above, I think myTempPatt4 shall match strings "a" and "z" only.
> not "r".
>
> how do you think?
> thanks.
>
> --xing xuezhi
>
The administrator has disabled public write access.
  • Page:
  • 1

FacebookTwitterGoogle BookmarksRedditNewsvineTechnoratiLinkedin