StringTokenizer methods syntax: Difference between revisions
m (Automatically generated page update) |
m (Automatically generated page update) |
||
Line 3: | Line 3: | ||
{{Template:Syntax list header|class=StringTokenizer}} | {{Template:Syntax list header|class=StringTokenizer}} | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top:1px solid;"><span class="term">%boolean</span><span class="literal"> =</span> <span class="term">stringTokenizer</span><span class="literal">:[[AtEnd (StringTokenizer function)|AtEnd]]</span></p> | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top:1px solid;"><span class="term">%boolean</span><span class="literal"> =</span> <span class="term">stringTokenizer</span><span class="literal">:[[AtEnd (StringTokenizer function)|AtEnd]]</span></p> | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">% | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%currentBoolean</span><span class="literal"> =</span> <span class="term">stringTokenizer</span><span class="literal">:[[CompressSpaces (StringTokenizer property)|CompressSpaces]]</span> | ||
<span class="term">stringTokenizer</span><span class="literal">:[[CompressSpaces (StringTokenizer property)|CompressSpaces]]</span> <span class="literal">= </span><span class="term"> | <span class="term">stringTokenizer</span><span class="literal">:[[CompressSpaces (StringTokenizer property)|CompressSpaces]]</span> <span class="literal">= </span><span class="term">newBoolean</span></p> | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%boolean</span><span class="literal"> =</span> <span class="term">stringTokenizer</span><span class="literal">:[[CurrentQuoted (StringTokenizer function)|CurrentQuoted]]</span></p> | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%boolean</span><span class="literal"> =</span> <span class="term">stringTokenizer</span><span class="literal">:[[CurrentQuoted (StringTokenizer function)|CurrentQuoted]]</span></p> | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%string</span><span class="literal"> =</span> <span class="term">stringTokenizer</span><span class="literal">:[[CurrentToken (StringTokenizer function)|CurrentToken]]</span></p> | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%string</span><span class="literal"> =</span> <span class="term">stringTokenizer</span><span class="literal">:[[CurrentToken (StringTokenizer function)|CurrentToken]]</span></p> | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">% | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%currentNumber</span><span class="literal"> =</span> <span class="term">stringTokenizer</span><span class="literal">:[[CurrentTokenPosition (StringTokenizer property)|CurrentTokenPosition]]</span> | ||
<span class="term">stringTokenizer</span><span class="literal">:[[CurrentTokenPosition (StringTokenizer property)|CurrentTokenPosition]]</span> <span class="literal">= </span><span class="term"> | <span class="term">stringTokenizer</span><span class="literal">:[[CurrentTokenPosition (StringTokenizer property)|CurrentTokenPosition]]</span> <span class="literal">= </span><span class="term">newNumber</span></p> | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="squareb">[</span><span class="term">%boolean</span><span class="literal"> =</span><span class="squareb">]</span> <span class="term">stringTokenizer</span><span class="literal">:[[FindToken (StringTokenizer function)|FindToken]]</span><span class="literal">(</span> <span class="term" title="String">string</span><span class="literal">)</span></p> | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="squareb">[</span><span class="term">%boolean</span><span class="literal"> =</span><span class="squareb">]</span> <span class="term">stringTokenizer</span><span class="literal">:[[FindToken (StringTokenizer function)|FindToken]]</span><span class="literal">(</span> <span class="term" title="String">string</span><span class="literal">)</span></p> | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">% | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%currentBoolean</span><span class="literal"> =</span> <span class="term">stringTokenizer</span><span class="literal">:[[FoldDoubledQuotes (StringTokenizer property)|FoldDoubledQuotes]]</span> | ||
<span class="term">stringTokenizer</span><span class="literal">:[[FoldDoubledQuotes (StringTokenizer property)|FoldDoubledQuotes]]</span> <span class="literal">= </span><span class="term"> | <span class="term">stringTokenizer</span><span class="literal">:[[FoldDoubledQuotes (StringTokenizer property)|FoldDoubledQuotes]]</span> <span class="literal">= </span><span class="term">newBoolean</span></p> | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%stringTokenizer</span><span class="literal"> =</span> <span class="literal">%(StringTokenizer):[[New (StringTokenizer constructor)|New]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="literal" title="String">TokenChars=</span> <span class="term" title="String">string</span><span class="squareb">]</span><span class="comma">,</span> - | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%stringTokenizer</span><span class="literal"> =</span> <span class="literal">%(StringTokenizer):[[New (StringTokenizer constructor)|New]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="literal" title="String">TokenChars=</span> <span class="term" title="String">string</span><span class="squareb">]</span><span class="comma">,</span> - | ||
<span class="squareb">[</span><span class="literal" title="String">Spaces=</span> <span class="term" title="String">string</span><span class="squareb">]</span><span class="comma">,</span> - | <span class="squareb">[</span><span class="literal" title="String">Spaces=</span> <span class="term" title="String">string</span><span class="squareb">]</span><span class="comma">,</span> - | ||
Line 17: | Line 17: | ||
<span class="squareb">[</span><span class="literal" title="String">Separators=</span> <span class="term" title="String">string</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</span></p> | <span class="squareb">[</span><span class="literal" title="String">Separators=</span> <span class="term" title="String">string</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</span></p> | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%string</span><span class="literal"> =</span> <span class="term">stringTokenizer</span><span class="literal">:[[NextChar (StringTokenizer function)|NextChar]]</span></p> | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%string</span><span class="literal"> =</span> <span class="term">stringTokenizer</span><span class="literal">:[[NextChar (StringTokenizer function)|NextChar]]</span></p> | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">% | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%currentNumber</span><span class="literal"> =</span> <span class="term">stringTokenizer</span><span class="literal">:[[NextPosition (StringTokenizer property)|NextPosition]]</span> | ||
<span class="term">stringTokenizer</span><span class="literal">:[[NextPosition (StringTokenizer property)|NextPosition]]</span> <span class="literal">= </span><span class="term"> | <span class="term">stringTokenizer</span><span class="literal">:[[NextPosition (StringTokenizer property)|NextPosition]]</span> <span class="literal">= </span><span class="term">newNumber</span></p> | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="squareb">[</span><span class="term">%string</span><span class="literal"> =</span><span class="squareb">]</span> <span class="term">stringTokenizer</span><span class="literal">:[[NextToken (StringTokenizer function)|NextToken]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="literal" title="Number">Skip=</span> <span class="term" title="Number">number</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</span></p> | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="squareb">[</span><span class="term">%string</span><span class="literal"> =</span><span class="squareb">]</span> <span class="term">stringTokenizer</span><span class="literal">:[[NextToken (StringTokenizer function)|NextToken]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="literal" title="Number">Skip=</span> <span class="term" title="Number">number</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</span></p> | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%boolean</span><span class="literal"> =</span> <span class="term">stringTokenizer</span><span class="literal">:[[NotAtEnd (StringTokenizer function)|NotAtEnd]]</span></p> | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%boolean</span><span class="literal"> =</span> <span class="term">stringTokenizer</span><span class="literal">:[[NotAtEnd (StringTokenizer function)|NotAtEnd]]</span></p> | ||
Line 25: | Line 25: | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%string</span><span class="literal"> =</span> <span class="term">stringTokenizer</span><span class="literal">:[[PeekToken (StringTokenizer function)|PeekToken]]</span></p> | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%string</span><span class="literal"> =</span> <span class="term">stringTokenizer</span><span class="literal">:[[PeekToken (StringTokenizer function)|PeekToken]]</span></p> | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%string</span><span class="literal"> =</span> <span class="term">stringTokenizer</span><span class="literal">:[[PreviousChar (StringTokenizer function)|PreviousChar]]</span></p> | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%string</span><span class="literal"> =</span> <span class="term">stringTokenizer</span><span class="literal">:[[PreviousChar (StringTokenizer function)|PreviousChar]]</span></p> | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">% | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%currentString</span><span class="literal"> =</span> <span class="term">stringTokenizer</span><span class="literal">:[[Quotes (StringTokenizer property)|Quotes]]</span> | ||
<span class="term">stringTokenizer</span><span class="literal">:[[Quotes (StringTokenizer property)|Quotes]]</span> <span class="literal">= </span><span class="term"> | <span class="term">stringTokenizer</span><span class="literal">:[[Quotes (StringTokenizer property)|Quotes]]</span> <span class="literal">= </span><span class="term">newString</span></p> | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">% | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%currentBoolean</span><span class="literal"> =</span> <span class="term">stringTokenizer</span><span class="literal">:[[QuotesBreak (StringTokenizer property)|QuotesBreak]]</span> | ||
<span class="term">stringTokenizer</span><span class="literal">:[[QuotesBreak (StringTokenizer property)|QuotesBreak]]</span> <span class="literal">= </span><span class="term"> | <span class="term">stringTokenizer</span><span class="literal">:[[QuotesBreak (StringTokenizer property)|QuotesBreak]]</span> <span class="literal">= </span><span class="term">newBoolean</span></p> | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">% | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%currentBoolean</span><span class="literal"> =</span> <span class="term">stringTokenizer</span><span class="literal">:[[RemoveQuotes (StringTokenizer property)|RemoveQuotes]]</span> | ||
<span class="term">stringTokenizer</span><span class="literal">:[[RemoveQuotes (StringTokenizer property)|RemoveQuotes]]</span> <span class="literal">= </span><span class="term"> | <span class="term">stringTokenizer</span><span class="literal">:[[RemoveQuotes (StringTokenizer property)|RemoveQuotes]]</span> <span class="literal">= </span><span class="term">newBoolean</span></p> | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%string</span><span class="literal"> =</span> <span class="term">stringTokenizer</span><span class="literal">:[[RestOfString (StringTokenizer function)|RestOfString]]</span></p> | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%string</span><span class="literal"> =</span> <span class="term">stringTokenizer</span><span class="literal">:[[RestOfString (StringTokenizer function)|RestOfString]]</span></p> | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">% | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%currentString</span><span class="literal"> =</span> <span class="term">stringTokenizer</span><span class="literal">:[[Separators (StringTokenizer property)|Separators]]</span> | ||
<span class="term">stringTokenizer</span><span class="literal">:[[Separators (StringTokenizer property)|Separators]]</span> <span class="literal">= </span><span class="term"> | <span class="term">stringTokenizer</span><span class="literal">:[[Separators (StringTokenizer property)|Separators]]</span> <span class="literal">= </span><span class="term">newString</span></p> | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">stringTokenizer</span><span class="literal">:[[SkipTokens (StringTokenizer subroutine)|SkipTokens]]</span><span class="literal">(</span> <span class="term" title="Number">number</span><span class="literal">)</span></p> | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">stringTokenizer</span><span class="literal">:[[SkipTokens (StringTokenizer subroutine)|SkipTokens]]</span><span class="literal">(</span> <span class="term" title="Number">number</span><span class="literal">)</span></p> | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">% | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%currentString</span><span class="literal"> =</span> <span class="term">stringTokenizer</span><span class="literal">:[[Spaces (StringTokenizer property)|Spaces]]</span> | ||
<span class="term">stringTokenizer</span><span class="literal">:[[Spaces (StringTokenizer property)|Spaces]]</span> <span class="literal">= </span><span class="term"> | <span class="term">stringTokenizer</span><span class="literal">:[[Spaces (StringTokenizer property)|Spaces]]</span> <span class="literal">= </span><span class="term">newString</span></p> | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%string</span><span class="literal"> =</span> <span class="term">stringTokenizer</span><span class="literal">:[[StartOfString (StringTokenizer function)|StartOfString]]</span></p> | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%string</span><span class="literal"> =</span> <span class="term">stringTokenizer</span><span class="literal">:[[StartOfString (StringTokenizer function)|StartOfString]]</span></p> | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">% | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%currentString</span><span class="literal"> =</span> <span class="term">stringTokenizer</span><span class="literal">:[[String (StringTokenizer property)|String]]</span> | ||
<span class="term">stringTokenizer</span><span class="literal">:[[String (StringTokenizer property)|String]]</span> <span class="literal">= </span><span class="term"> | <span class="term">stringTokenizer</span><span class="literal">:[[String (StringTokenizer property)|String]]</span> <span class="literal">= </span><span class="term">newString</span></p> | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%number</span><span class="literal"> =</span> <span class="term">stringTokenizer</span><span class="literal">:[[StringLength (StringTokenizer function)|StringLength]]</span></p> | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%number</span><span class="literal"> =</span> <span class="term">stringTokenizer</span><span class="literal">:[[StringLength (StringTokenizer function)|StringLength]]</span></p> | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%string</span><span class="literal"> =</span> <span class="term">stringTokenizer</span><span class="literal">:[[StringUpTo (StringTokenizer function)|StringUpTo]]</span><span class="literal">(</span> <span class="term" title="String">string</span><span class="literal">)</span></p> | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%string</span><span class="literal"> =</span> <span class="term">stringTokenizer</span><span class="literal">:[[StringUpTo (StringTokenizer function)|StringUpTo]]</span><span class="literal">(</span> <span class="term" title="String">string</span><span class="literal">)</span></p> | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%string</span><span class="literal"> =</span> <span class="term">stringTokenizer</span><span class="literal">:[[Substring (StringTokenizer function)|Substring]]</span><span class="literal">(</span> <span class="term" title="Number">position</span><span class="comma">,</span> <span class="term" title="Number">length</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="C">Pad=</span> <span class="term" title="C">c</span><span class="squareb">]</span><span class="literal">)</span></p> | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%string</span><span class="literal"> =</span> <span class="term">stringTokenizer</span><span class="literal">:[[Substring (StringTokenizer function)|Substring]]</span><span class="literal">(</span> <span class="term" title="Number">position</span><span class="comma">,</span> <span class="term" title="Number">length</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="C">Pad=</span> <span class="term" title="C">c</span><span class="squareb">]</span><span class="literal">)</span></p> | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">% | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%currentString</span><span class="literal"> =</span> <span class="term">stringTokenizer</span><span class="literal">:[[TokenChars (StringTokenizer property)|TokenChars]]</span> | ||
<span class="term">stringTokenizer</span><span class="literal">:[[TokenChars (StringTokenizer property)|TokenChars]]</span> <span class="literal">= </span><span class="term"> | <span class="term">stringTokenizer</span><span class="literal">:[[TokenChars (StringTokenizer property)|TokenChars]]</span> <span class="literal">= </span><span class="term">newString</span></p> | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">% | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%currentBoolean</span><span class="literal"> =</span> <span class="term">stringTokenizer</span><span class="literal">:[[TokensToLower (StringTokenizer property)|TokensToLower]]</span> | ||
<span class="term">stringTokenizer</span><span class="literal">:[[TokensToLower (StringTokenizer property)|TokensToLower]]</span> <span class="literal">= </span><span class="term"> | <span class="term">stringTokenizer</span><span class="literal">:[[TokensToLower (StringTokenizer property)|TokensToLower]]</span> <span class="literal">= </span><span class="term">newBoolean</span></p> | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">% | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%currentBoolean</span><span class="literal"> =</span> <span class="term">stringTokenizer</span><span class="literal">:[[TokensToUpper (StringTokenizer property)|TokensToUpper]]</span> | ||
<span class="term">stringTokenizer</span><span class="literal">:[[TokensToUpper (StringTokenizer property)|TokensToUpper]]</span> <span class="literal">= </span><span class="term"> | <span class="term">stringTokenizer</span><span class="literal">:[[TokensToUpper (StringTokenizer property)|TokensToUpper]]</span> <span class="literal">= </span><span class="term">newBoolean</span></p> |
Revision as of 22:24, 14 February 2011
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
%currentNumber = stringTokenizer:CurrentTokenPosition stringTokenizer:CurrentTokenPosition = newNumber
[%boolean =] stringTokenizer:FindToken( string)
%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])]
%boolean = stringTokenizer:NotAtEnd
%string = stringTokenizer:PeekChar
%string = stringTokenizer:PeekPreviousChar
%string = stringTokenizer:PeekToken
%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)
%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