Rev 3263 | Rev 3469 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
3263 | bpr | 1 | 所有的比较都在串上进行: <tt>string1 rel string2</tt>. |
2 | 可以利用 <tt>and</tt> 与 <tt>or</tt> 把比较结合起来. |
||
3 | 还可以利用括号以构成复杂的比较式. |
||
196 | bpr | 4 | |
3263 | bpr | 5 | :有效的关系 <tt>rel</tt>: |
6 | :关系,条件 |
||
7 | := </tt> 或 <tt>== |
||
8 | true(真), 若 <tt> string1</tt> 与 <tt>string2</tt> 完全相同. |
||
9 | :!= </tt> 或 <tt><> |
||
10 | true(真), 若 <tt> string1</tt> 与 <tt>string2</tt> 不相同. |
||
11 | :< |
||
12 | true(真), 如果两个串的数值 <tt>string1</tt> < <tt>string2</tt>. |
||
13 | :<= |
||
14 | true(真), 如果两个串的数值 <tt>string1</tt> $m_le <tt>string2</tt>. |
||
15 | :> |
||
16 | true(真), 如果两个串的数值 <tt>string1</tt> > <tt>string2</tt>. |
||
17 | :>= |
||
18 | true(真), 如果两个串的数值 <tt>string1</tt> $m_ge <tt>string2</tt>. |
||
19 | :isin |
||
20 | true(真), 若 <tt>string1</tt> 是 <tt>string2</tt> 的子串. |
||
21 | :notin |
||
22 | true(真), 若 <tt>string1</tt> 不是 <tt>string2</tt> 的子串. |
||
23 | :iswordof |
||
24 | true(真), 若 <tt>string1</tt> 是 <tt>string2</tt> 的一个词. |
||
25 | :notwordof |
||
26 | true(真), 若 <tt>string1</tt> 不是 <tt>string2</tt> 的一个词. |
||
27 | :isvarof |
||
28 | true(真), 若 <tt>string1</tt> 是表达式 <tt>string2</tt> 的一个(数学)变量. |
||
29 | :notvarof |
||
30 | true(真), 若 <tt>string1</tt> 不是表达式 <tt>string2</tt> 的一个(数学)变量. |
||
31 | :isvariableof |
||
32 | true(真), 若 <tt> string1</tt> 是表达式 <tt>string2</tt> 的一个(数学)变量. |
||
33 | :notvariableof |
||
34 | true(真), 若 <tt> string1</tt> 不是表达式 <tt>string2</tt> 的一个(数学)变量. |
||
35 | :isitemof |
||
36 | true(真), 若 <tt> string1</tt> 是表 <tt>string2</tt> 的一项. |
||
37 | :notitemof |
||
38 | true(真), 若 <tt> string1</tt> 不是表 <tt>string2</tt> 的一项. |
||
39 | :islineof |
||
40 | true(真), 若 <tt> string1</tt> 是表 <tt>string2</tt> 的一行. |
||
41 | :notlineof |
||
42 | true(真), 若 <tt> string1</tt> 不是表 <tt>string2</tt> 的一行. |
||
43 | :issamecase |
||
44 | true(真), 若 <tt> string1</tt> 与 <tt>string2</tt> 有相同的文字, 比较时不考虑多余的空格, 但是区别大小写字母. |
||
45 | :notsamecase |
||
46 | true(真), 若 <tt> string1</tt> 与 <tt>string2</tt> 有不相同的文字, 比较时不考虑多余的空格, 但是区别大小写字母. |
||
47 | :issametext |
||
48 | true(真), 若 <tt> string1</tt> 与 <tt>string2</tt> 有相同的文字, 比较时不考虑多余的空格、大小写字母及有重音号的字母. |
||
49 | :notsametext |
||
50 | true(真), 若 <tt> string1</tt> 与 <tt>string2</tt> 有不相同的文字, 比较时不考虑多余的空格、大小写字母及有重音号的字母. |
||
2071 | zjchen | 51 |