$addtok » History » Version 2
Per Amundsen, 02/07/2014 08:45 PM
| 1 | 1 | Per Amundsen | h1. $addtok |
|---|---|---|---|
| 2 | |||
| 3 | $addtok(text,token,C) |
||
| 4 | |||
| 5 | Adds a token to the end of text but only if it is not already in text. |
||
| 6 | |||
| 7 | <pre> |
||
| 8 | //echo -ag $addtok(a.b.c,d,46) returns a.b.c.d |
||
| 9 | //echo -ag $addtok(a.b.c.d,c,46) returns a.b.c.d |
||
| 10 | </pre> |
||
| 11 | |||
| 12 | The C parameter is the ascii value of the character separating the tokens. |
||
| 13 | |||
| 14 | $addtok is case-insenseive, see [[$addtokcs]] for case-sensetive version. |