StreamTokenizer.OrdinaryChar(Int32) 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.
Specifies that the character argument is "ordinary" in this tokenizer.
[Android.Runtime.Register("ordinaryChar", "(I)V", "GetOrdinaryChar_IHandler")]
public virtual void OrdinaryChar (int ch);
[<Android.Runtime.Register("ordinaryChar", "(I)V", "GetOrdinaryChar_IHandler")>]
abstract member OrdinaryChar : int -> unit
override this.OrdinaryChar : int -> unit
Parameters
- ch
- Int32
the character.
- Attributes
Remarks
Specifies that the character argument is "ordinary" in this tokenizer. It removes any special significance the character has as a comment character, word component, string delimiter, white space, or number character. When such a character is encountered by the parser, the parser treats it as a single-character token and sets ttype
field to the character value.
Making a line terminator character "ordinary" may interfere with the ability of a StreamTokenizer
to count lines. The lineno
method may no longer reflect the presence of such terminator characters in its line count.
Java documentation for java.io.StreamTokenizer.ordinaryChar(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.