Tokenize2

Primary method for concatenation. Analyzes the input string and generates the token structure based on the delimiters defined by TermSign(). This method performs the actual concatenation and parses the input string into a hierarchical structure of recognized tokens based on the configured separators (open, close, delimiter).
Upon successful execution, the outputs contain:
-
nTokenCount: Number of parsed tokens -
nMaxTokenLevel: Maximum nesting depth
Syntax
METHOD PROTECTED Tokenize2 : BOOL
VAR_INPUT
sText : POINTER TO STRING;
nText : UINT;
END_VAR
Inputs
|
Name |
Type |
Description |
|---|---|---|
|
sText |
POINTER TO STRING |
A pointer to the string to be analyzed. |
|
nText |
UINT |
Length of the string in characters. |