NotAtEnd (StringTokenizer function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
 
m (fix "using boolean enumerations" link)
Line 14: Line 14:
<td>An enumeration object of type <var>Boolean</var> to contain the returned value of <var>NotAtEnd</var>.
<td>An enumeration object of type <var>Boolean</var> to contain the returned value of <var>NotAtEnd</var>.


For more information about <var>Boolean</var> enumerations, see [[Using Boolean enumerations]]. </td></tr>
For more information about <var>Boolean</var> enumerations, see [[Enumerations#Using_Boolean_enumerations|"Using Boolean Enumerations"]]. </td></tr>
<tr><th>stringTokenizer</th>
<tr><th>stringTokenizer</th>
<td>A <var>StringTokenizer</var> object expression.</td></tr>
<td>A <var>StringTokenizer</var> object expression.</td></tr>

Revision as of 09:14, 19 May 2011

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


This method returns a Boolean value that indicates whether or not the present tokenizing position is after the last token in the tokenizer string. The value is True if the position is not after the last token; otherwise it is False.

The tokenizing position is given by 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 value of False if the current tokenizing position is not at the end of the string.

See also