StringTokenizer.CountTokens Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Calculates the number of times that this tokenizer's
nextToken
method can be called before it generates an
exception.
[Android.Runtime.Register("countTokens", "()I", "GetCountTokensHandler")]
public virtual int CountTokens ();
[<Android.Runtime.Register("countTokens", "()I", "GetCountTokensHandler")>]
abstract member CountTokens : unit -> int
override this.CountTokens : unit -> int
Returns
the number of tokens remaining in the string using the current delimiter set.
- Attributes
Remarks
Calculates the number of times that this tokenizer's nextToken
method can be called before it generates an exception. The current position is not advanced.
Java documentation for java.util.StringTokenizer.countTokens()
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.