Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Scroll tablelayout
sortDirectionASC
repeatTableHeadersdefaultstyle
widths15%, 15%, 14%, 13%, 43%
style
sortByColumn1
sortEnabledfalse
cellHighlightingtrue

...

Returns all of the "tokens" found within "string".

Examples

Code Block
languagetext
// 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

...