NotAtEnd (StringTokenizer function): Difference between revisions
Jump to navigation
Jump to search
m (1 revision) |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{Template:StringTokenizer:NotAtEnd subtitle}} | {{Template:StringTokenizer:NotAtEnd subtitle}} | ||
This method returns a Boolean value that indicates whether or not | This method returns a <var>[[Boolean enumeration|Boolean]]</var> value that indicates whether or not | ||
the present tokenizing position is after the last token in the tokenizer string. | the present tokenizing position is after the last token in the tokenizer string. | ||
The value is < | The value is <var>True</var> if the position is '''not''' after the | ||
last token; otherwise it is < | last token; otherwise it is <var>False</var>. | ||
The tokenizing position is given by <var>[[NextPosition (StringTokenizer property)|NextPosition]]</var>. | |||
==Syntax== | ==Syntax== | ||
{{Template:StringTokenizer:NotAtEnd syntax}} | {{Template:StringTokenizer:NotAtEnd syntax}} | ||
===Syntax terms=== | ===Syntax terms=== | ||
<table class="syntaxTable"> | <table class="syntaxTable"> | ||
Line 15: | Line 17: | ||
For more information about <var>Boolean</var> enumerations, see [[Enumerations#Using_Boolean_enumerations|"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> | ||
Line 29: | Line 32: | ||
%tok:notAtEnd | %tok:notAtEnd | ||
</p> | </p> | ||
<li>[[AtEnd (StringTokenizer function)|AtEnd]] is the reverse of <var>NotAtEnd</var>: | |||
it returns a | <li><var>[[AtEnd (StringTokenizer function)|AtEnd]]</var> is the reverse of <var>NotAtEnd</var>: | ||
if the current tokenizing position is not at the end of the string. | it returns a <code>False</code> value if the current tokenizing position is not at the end of the string. | ||
</ul> | </ul> | ||
==See also== | ==See also== | ||
{{Template:StringTokenizer:NotAtEnd footer}} | {{Template:StringTokenizer:NotAtEnd footer}} |
Revision as of 00:15, 6 July 2012
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
False
value if the current tokenizing position is not at the end of the string.