Condividi tramite


StreamTokenizer.ParseNumbers Method

Definition

Specifies that numbers should be parsed by this tokenizer.

[Android.Runtime.Register("parseNumbers", "()V", "GetParseNumbersHandler")]
public virtual void ParseNumbers ();
[<Android.Runtime.Register("parseNumbers", "()V", "GetParseNumbersHandler")>]
abstract member ParseNumbers : unit -> unit
override this.ParseNumbers : unit -> unit
Attributes

Remarks

Specifies that numbers should be parsed by this tokenizer. The syntax table of this tokenizer is modified so that each of the twelve characters: <blockquote>

0 1 2 3 4 5 6 7 8 9 . -

</blockquote>

has the "numeric" attribute.

When the parser encounters a word token that has the format of a double precision floating-point number, it treats the token as a number rather than a word, by setting the ttype field to the value TT_NUMBER and putting the numeric value of the token into the nval field.

Java documentation for java.io.StreamTokenizer.parseNumbers().

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.

Applies to