Udostępnij za pośrednictwem


StreamTokenizer.SlashSlashComments(Boolean) Method

Definition

Determines whether or not the tokenizer recognizes C++-style comments.

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

Parameters

flag
Boolean

true indicates to recognize and ignore C++-style comments.

Attributes

Remarks

Determines whether or not the tokenizer recognizes C++-style comments. If the flag argument is true, this stream tokenizer recognizes C++-style comments. Any occurrence of two consecutive slash characters ('/') is treated as the beginning of a comment that extends to the end of the line.

If the flag argument is false, then C++-style comments are not treated specially.

Java documentation for java.io.StreamTokenizer.slashSlashComments(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