$istok » History » Version 4
Per Amundsen, 08/09/2015 05:47 AM
1 | 1 | Per Amundsen | _Added in 1.9.0_ |
---|---|---|---|
2 | |||
3 | *$istok(text,token,C)* |
||
4 | |||
5 | Returns [[$true]] if token exists in text, otherwise returns [[$false]]. |
||
6 | |||
7 | 4 | Per Amundsen | _[[$istok}} is case-insensitive, see [[$istokcs]] for a case-sensitive version._ |
8 | 1 | Per Amundsen | |
9 | *Parameters* |
||
10 | |||
11 | 4 | Per Amundsen | text - The text to tokenize. |
12 | 1 | Per Amundsen | token - The token to check. |
13 | 4 | Per Amundsen | C - The "ASCII":http://www.asciitable.com/ value to tokenize by. |
14 | 1 | Per Amundsen | |
15 | *Example* |
||
16 | |||
17 | <pre> |
||
18 | ; Check if 'b' is a token in 'a.b.c.d' |
||
19 | //echo -ag $istok(a.b.c.d, b, 46) |
||
20 | </pre> |