StringTokenizer methods syntax
The syntax for each of the StringTokenizer class methods is shown below.
Square brackets indicate optional elements of the method invocation. See also the notation conventions for methods and the List of StringTokenizer methods.
%boolean = stringTokenizer:AtEnd
%currentBoolean = stringTokenizer:CompressSpaces stringTokenizer:CompressSpaces = newBoolean
%boolean = stringTokenizer:CurrentQuoted
%string = stringTokenizer:CurrentToken
Throws MismatchedQuote, MismatchedQuote
%currentNumber = stringTokenizer:CurrentTokenPosition stringTokenizer:CurrentTokenPosition = newNumber
[%boolean =] stringTokenizer:FindToken( string)
Throws MismatchedQuote
%currentBoolean = stringTokenizer:FoldDoubledQuotes stringTokenizer:FoldDoubledQuotes = newBoolean
%stringTokenizer = [%(StringTokenizer):]New[( [TokenChars= string], - [Spaces= string], - [Quotes= string], - [Separators= string])]
%string = stringTokenizer:NextChar
%currentNumber = stringTokenizer:NextPosition stringTokenizer:NextPosition = newNumber
[%string =] stringTokenizer:NextToken[( [Skip= number], [Default= string])]
Throws MismatchedQuote, MismatchedQuote
%boolean = stringTokenizer:NotAtEnd
%string = stringTokenizer:PeekChar
%string = stringTokenizer:PeekPreviousChar
%string = stringTokenizer:PeekToken
Throws MismatchedQuote, MismatchedQuote
%string = stringTokenizer:PreviousChar
%currentString = stringTokenizer:Quotes stringTokenizer:Quotes = newString
%currentBoolean = stringTokenizer:QuotesBreak stringTokenizer:QuotesBreak = newBoolean
%currentBoolean = stringTokenizer:RemoveQuotes stringTokenizer:RemoveQuotes = newBoolean
%string = stringTokenizer:RestOfString
%currentString = stringTokenizer:Separators stringTokenizer:Separators = newString
stringTokenizer:SkipTokens( number)
Throws MismatchedQuote, MismatchedQuote
%currentString = stringTokenizer:Spaces stringTokenizer:Spaces = newString
%string = stringTokenizer:StartOfString
%currentString = stringTokenizer:String stringTokenizer:String = newString
%number = stringTokenizer:StringLength
%string = stringTokenizer:StringUpTo( string)
%string = stringTokenizer:Substring( position, length, [Pad= c])
%currentString = stringTokenizer:TokenChars stringTokenizer:TokenChars = newString
%currentBoolean = stringTokenizer:TokensToLower stringTokenizer:TokensToLower = newBoolean
%currentBoolean = stringTokenizer:TokensToUpper stringTokenizer:TokensToUpper = newBoolean