NotAtEnd (StringTokenizer function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
{{Template:StringTokenizer:NotAtEnd subtitle}}
{{Template:StringTokenizer:NotAtEnd subtitle}}


This method returns a <var>[[Boolean enumeration|Boolean]]</var> value that indicates whether or not
This method returns a Boolean value that is <code>true</var> if
the present tokenizing position is after the last token in the tokenizer string.
any tokens remain starting from <var>[[NextPosition (StringTokenizer property)|NextPosition]]</var>.
The value is <var>True</var> if the position is '''not''' after the
last token; otherwise it is <var>False</var>.
 
The tokenizing position is given by <var>[[NextPosition (StringTokenizer property)|NextPosition]]</var>.


==Syntax==
==Syntax==

Revision as of 20:49, 27 October 2012

Is present tokenizing position at end of tokenizerstring? (StringTokenizer class)


This method returns a Boolean value that is true if any tokens remain starting from NextPosition.

Syntax

%boolean = stringTokenizer:NotAtEnd

Syntax terms

%boolean An enumeration object of type Boolean to contain the returned value of NotAtEnd. For more information about Boolean enumerations, see "Using Boolean Enumerations".
stringTokenizer A StringTokenizer object expression.

Usage notes

  • The tokenizing position may be after the last token but not necessarily at the end of the token string. In the following code sequence, the return from NotAtEnd is True and the position is not at the end of the string:

    %tok:string = 'example ' %tok:nextPosition = 10 %tok:notAtEnd

  • AtEnd is the reverse of NotAtEnd: it returns a False value if the current tokenizing position is not at the end of the string.

See also