StreamTokenizer.EolIsSignificant(Boolean) Method

Definition

Determines whether or not ends of line are treated as tokens.

[Android.Runtime.Register("eolIsSignificant", "(Z)V", "GetEolIsSignificant_ZHandler")]
public virtual void EolIsSignificant (bool flag);
[<Android.Runtime.Register("eolIsSignificant", "(Z)V", "GetEolIsSignificant_ZHandler")>]
abstract member EolIsSignificant : bool -> unit
override this.EolIsSignificant : bool -> unit

Parameters

flag
Boolean

true indicates that end-of-line characters are separate tokens; false indicates that end-of-line characters are white space.

Attributes

Remarks

Determines whether or not ends of line are treated as tokens. If the flag argument is true, this tokenizer treats end of lines as tokens; the nextToken method returns TT_EOL and also sets the ttype field to this value when an end of line is read.

A line is a sequence of characters ending with either a carriage-return character ('\u005Cr') or a newline character ('\u005Cn'). In addition, a carriage-return character followed immediately by a newline character is treated as a single end-of-line token.

If the flag is false, end-of-line characters are treated as white space and serve only to separate tokens.

Java documentation for java.io.StreamTokenizer.eolIsSignificant(boolean).

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