Subversion Repositories wimsdev

Rev

Rev 10181 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
8819 bpr 1
text1=toto tata,tutu\
2
titi tyty, tttt\
3
zzz ttt
8810 bpr 4
 
8819 bpr 5
text2=[aa,b],cc,dd
6
text3={aa,b},cc,dd
8810 bpr 7
accent=éteadafd
8
 
8819 bpr 9
list1=toto,tata,tutu, titi
10
list2=toto,tata\
11
tutu\
12
titi
8810 bpr 13
 
8819 bpr 14
list3=45;89
15
line=!line 2 of $text1
16
item=!item 1 of $text1
17
word1=!word 2 of $text1
18
word2=!word 5 of $text1
8810 bpr 19
accent1=!char 1 of $accent
20
accent2=!char 1 to 5 of $accent
8819 bpr 21
accent3=!deaccent éaeùî
8827 bpr 22
accent4=!reaccent de'ae`u'i^u^E'a'
23
 
8819 bpr 24
parent1=!item 2 of $text2
25
parent2=!item 1 of $text3
26
 
27
position1=!positionof item toto in $list1
28
position2=!positionof char o in $list1
29
position3=!positionof word titi in $list1
30
position4=!positionof line titi in $list2
31
 
32
detag1=!detag <a>aaa</a> <div><p> essai </p></div>,
33
 
34
select1=!select $text1 where toto isin column 1
35
select2=!select $text1 where column 2=tttt
36
 
37
getopt1=!getopt a in a=aaa b=ccc
38
getopt2=!getopt b in a=aaa b=ccc
39
getopt3=!getopt a in a=(aaa bbb) dddd b=ccc
40
getopt4=!getopt a in a={aaa bbb} dddd b=ccc
41
getopt5=!getopt a in a="aaa bbb" dddd b=ccc
42
getopt6=!getopt a in a=[aaa bbb] dddd b=ccc
43
 
44
nonempty1=!nonempty items aa,,bb
45
nonempty2=!nonempty lines aa,\
46
\
47
,bb
48
 
49
nonempty3=!nonempty rows aa,;;bb
50
 
15588 bpr 51
declosing1=!declosing [brack1,brack2]
52
declosing2=!declosing {acco1,acco2}
53
declosing3=!declosing (par1,par2)
54
declosing4=!declosing ({acolade,parent})
55
declosing4=!declosing (non balance {acolade,parent))
8819 bpr 56
 
57
testline1=!items2lines $list1
58
testline2=!items2words $list1
59
testline3=!lines2items $list2
60
testline4=!lines2words $list2
61
testline5=!words2lines $list1
62
testline6=!words2items $list1
63
testline7=!lines2rows $list2
64
testline8=!rows2lines $list3
9148 bpr 65
 
15588 bpr 66
checkpar1=!checkallpar ({a}{(b)})
67
checkpar2=!checkallpar {([{a}{(b)}])\
68
}
69
checkpar3=!checkallpar ({a}{[(c){d}]})
70
checkpar4=!checkallpar ({a}{(b)})}
71
checkpar5=!checkallpar ([{a}{(b)}]\
72
}
73
 
74
 
10181 bpr 75
vartest=$line\
9148 bpr 76
$item\
77
$word1\
78
$word2\
79
$accent1\
80
$accent2\
81
$accent3\
82
$accent4\
83
$parent1\
84
$parent2\
85
$position1\
86
$position2\
87
$position3\
88
$position4\
89
$detag1\
90
$select1\
91
$select2\
92
$getopt1\
93
$getopt2\
94
$getopt3\
95
$getopt4\
96
$getopt5\
97
$getopt6\
98
$nonempty1\
99
$nonempty2\
100
$nonempty3\
101
$declosing1\
102
$declosing2\
103
$declosing3\
15588 bpr 104
$declosing4\
9148 bpr 105
$testline1\
106
$testline2\
107
$testline3\
108
$testline4\
109
$testline5\
110
$testline6\
111
$testline\
15588 bpr 112
$testline8\
113
\
114
$checkpar1\
115
$checkpar2\
116
$checkpar3\
117
$checkpar4\
118
$checkpar5