NotAtEnd (StringTokenizer function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
<span style="font-size:120%; color:black"><b>Is present tokenizing position at end of tokenizer string?</b></span>
{{Template:StringTokenizer:NotAtEnd subtitle}}
[[Category:StringTokenizer methods|NotAtEnd function]]
<!--DPL?? Category:StringTokenizer methods|NotAtEnd function: Is present tokenizing position at end of tokenizer string?-->
<!--DPL?? Category:System methods|NotAtEnd (StringTokenizer function): Is present tokenizing position at end of tokenizer string?-->
<p>
NotAtEnd is a member of the [[StringTokenizer class]].
</p>


This method returns a Boolean value that indicates whether or not
This method returns a Boolean value that indicates whether or not
Line 13: Line 7:


The tokenizing position is given by [[NextPosition (StringTokenizer property)|NextPosition]].
The tokenizing position is given by [[NextPosition (StringTokenizer property)|NextPosition]].
===Syntax===
==Syntax==
  %bool = %tok:NotAtEnd
{{Template:StringTokenizer:NotAtEnd syntax}}
===Syntax terms===
===Syntax terms===
<dl>
<dl>
Line 26: Line 20:


</dl>
</dl>
===Usage Notes===
==Usage notes==
<ul>
<ul>
<li>The tokenizing position may be after the last token but
<li>The tokenizing position may be after the last token but
Line 41: Line 35:
if the current tokenizing position is not at the end of the string.
if the current tokenizing position is not at the end of the string.
</ul>
</ul>
==See also==
{{Template:StringTokenizer:NotAtEnd footer}}

Revision as of 19:54, 6 February 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

%bool
An enumeration object of type Boolean to contain the returned value of NotAtEnd. For more information about Boolean enumerations, see Using Boolean enumerations.
%tok
A StringTokenizer object variable.

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