$addtok » History » Version 15
Per Amundsen, 02/16/2023 05:14 PM
1 | 1 | Per Amundsen | _Added in 1.9.0_ |
---|---|---|---|
2 | 3 | Per Amundsen | |
3 | 6 | Per Amundsen | *$addtok(text,token,C)* |
4 | 1 | Per Amundsen | |
5 | Adds a token to the end of text but only if it is not already in text. |
||
6 | |||
7 | 10 | Per Amundsen | _[[$addtok]] is case-insensitive, see [[$addtokcs]] for case-sensitive version._ |
8 | 1 | Per Amundsen | |
9 | 6 | Per Amundsen | *Parameters* |
10 | 1 | Per Amundsen | |
11 | 15 | Per Amundsen | table(ktable). |
12 | |*Parameter*|*Description*| |
||
13 | | text | The text to tokenize. | |
||
14 | | token | Token to add. | |
||
15 | | C | The "ASCII":http://www.asciitable.com/ value to tokenize by. | |
||
16 | 6 | Per Amundsen | |
17 | *Example* |
||
18 | |||
19 | <pre> |
||
20 | 12 | Per Amundsen | ; Returns a.b.c.d |
21 | 6 | Per Amundsen | //echo -ag $addtok(a.b.c,d,46) |
22 | |||
23 | 12 | Per Amundsen | ; Returns a.b.c.d |
24 | 6 | Per Amundsen | //echo -ag $addtok(a.b.c.d,c,46) |
25 | </pre> |