...
Scroll tablelayout | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...
Returns all of the "tokens" found within "string".
Examples
Code Block | ||
---|---|---|
| ||
// Demonstrate string tokenization. |
...
string $str = "This is some text"; |
...
string $filepath = "C:/Program Files/ShogunPost#.#/SampleFiles/Day1/Test.hdf"; |
...
string $tokens[]; |
...
...
// Tokenize the first string. |
...
$tokens = `strTokArray $str`; |
...
print $tokens; |
...
...
// Now tokenize the file path. Tokenize it by |
...
// folders, so use / as a delimiter |
...
$tokens = `strTokArray $filepath -delims "/"`; |
...
print $tokens; |
Scroll pagebreak |
---|
Additional information
...