Tokens are strings separated by delimiter characters. For example, if you define the characters space (" ") and comma (",") as delimiters, the string "CALL PROGRAM ARG1,ARG2,ARG3" separates into five tokens: "CALL", "PROGRAM", "ARG1", "ARG2", and "ARG3".
strLib.getTokenCount( source STRING in, delimiters STRING in) returns (result INT)
In the following example, the space and comma characters separate four tokens:
commandLine STRING = "CALL PROG1 arg1,arg2"; delimiters STRING = " ," // space and comma delimiters i INT; i = StrLib.getTokenCount(commandLine, delimiters); // i = 4
Platform | Issue |
---|---|
JavaScript generation | The function strLib.getTokenCount() is not supported. |