StreamTokenizer.QuoteChar(Int32) Method

Definition

Specifies that matching pairs of this character delimit string constants in this tokenizer.

[Android.Runtime.Register("quoteChar", "(I)V", "GetQuoteChar_IHandler")]
public virtual void QuoteChar (int ch);
[<Android.Runtime.Register("quoteChar", "(I)V", "GetQuoteChar_IHandler")>]
abstract member QuoteChar : int -> unit
override this.QuoteChar : int -> unit

Parameters

ch
Int32

the character.

Attributes

Remarks

Specifies that matching pairs of this character delimit string constants in this tokenizer.

When the nextToken method encounters a string constant, the ttype field is set to the string delimiter and the sval field is set to the body of the string.

If a string quote character is encountered, then a string is recognized, consisting of all characters after (but not including) the string quote character, up to (but not including) the next occurrence of that same string quote character, or a line terminator, or end of file. The usual escape sequences such as "\u005Cn" and "\u005Ct" are recognized and converted to single characters as the string is parsed.

Any other attribute settings for the specified character are cleared.

Java documentation for java.io.StreamTokenizer.quoteChar(int).

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