C# 클래스 RTools.Util.StreamTokenizerSettings

파일 보기 프로젝트 열기: PaulMineau/AIMA.Net 1 사용 예제들

공개 메소드들

메소드 설명
CharTypeToString ( byte ctype ) : string

Return a string representation of a character type setting. Since the type setting is bitwise encoded, a character can have more than one type.

CommentChar ( int c ) : void

Specify that a particular character is a comment-starting character. Character table type manipulation method.

Copy ( StreamTokenizerSettings other ) : void

Sets this object to be the same as the specified object. Note that some settings which are entirely embodied by the character type table.

Display ( ) : void

Display the state of this object.

Display ( string prefix ) : void

Display the state of this object, with a per-line prefix.

IsCharType ( byte ctype, CharTypeBits type ) : bool

Check whether the specified char type byte has a particular type flag set.

IsCharType ( char c, CharTypeBits type ) : bool

Check whether the specified char has a particular type flag set.

IsCharType ( int c, CharTypeBits type ) : bool

Check whether the specified char has a particular type flag set.

OrdinaryChar ( int c ) : void

Remove other type settings from a character. Character table type manipulation method.

OrdinaryChars ( int startChar, int endChar ) : void

Remove other type settings from a range of characters. Character table type manipulation method.

QuoteChar ( int c ) : void

Specify that a particular character is a quote character. Character table type manipulation method.

ResetCharTypeTable ( ) : void

Clear the character type settings. This leaves them unset, as opposed to the default. Use SetDefaults() for default settings.

SetDefaults ( ) : bool

Setup default parse behavior. This resets to same behavior as on construction.

SetupForCodeParse ( ) : bool

Apply settings which are commonly used for code parsing C-style code, including C++, C#, and Java.

StreamTokenizerSettings ( ) : System

Default constructor.

StreamTokenizerSettings ( StreamTokenizerSettings other ) : System

Copy constructor.

WhitespaceChar ( int c ) : void

Specify that a character is a whitespace character. Character table type manipulation method. This type is exclusive with other types.

WhitespaceChars ( int startChar, int endChar ) : void

Specify that a range of characters are whitespace characters. Character table type manipulation method. This adds the characteristic to the char(s), rather than overwriting other characteristics.

WordChar ( int c ) : void

Specify that a particular character is a word character. Character table type manipulation method. This adds the type to the char(s), rather than overwriting other types.

WordChars ( int startChar, int endChar ) : void

Specify that a range of characters are word characters. Character table type manipulation method. This adds the type to the char(s), rather than overwriting other types.

WordChars ( string s ) : void

Specify that a string of characters are word characters. Character table type manipulation method. This adds the type to the char(s), rather than overwriting other types.

메소드 상세

CharTypeToString() 공개 메소드

Return a string representation of a character type setting. Since the type setting is bitwise encoded, a character can have more than one type.
public CharTypeToString ( byte ctype ) : string
ctype byte The character type byte.
리턴 string

CommentChar() 공개 메소드

Specify that a particular character is a comment-starting character. Character table type manipulation method.
public CommentChar ( int c ) : void
c int
리턴 void

Copy() 공개 메소드

Sets this object to be the same as the specified object. Note that some settings which are entirely embodied by the character type table.
public Copy ( StreamTokenizerSettings other ) : void
other StreamTokenizerSettings
리턴 void

Display() 공개 메소드

Display the state of this object.
public Display ( ) : void
리턴 void

Display() 공개 메소드

Display the state of this object, with a per-line prefix.
public Display ( string prefix ) : void
prefix string The pre-line prefix.
리턴 void

IsCharType() 공개 메소드

Check whether the specified char type byte has a particular type flag set.
public IsCharType ( byte ctype, CharTypeBits type ) : bool
ctype byte The char type byte.
type CharTypeBits The CharTypeBits entry to compare to.
리턴 bool

IsCharType() 공개 메소드

Check whether the specified char has a particular type flag set.
public IsCharType ( char c, CharTypeBits type ) : bool
c char The character.
type CharTypeBits The CharTypeBits entry to compare to.
리턴 bool

IsCharType() 공개 메소드

Check whether the specified char has a particular type flag set.
public IsCharType ( int c, CharTypeBits type ) : bool
c int The character.
type CharTypeBits The CharTypeBits entry to compare to.
리턴 bool

OrdinaryChar() 공개 메소드

Remove other type settings from a character. Character table type manipulation method.
public OrdinaryChar ( int c ) : void
c int
리턴 void

OrdinaryChars() 공개 메소드

Remove other type settings from a range of characters. Character table type manipulation method.
public OrdinaryChars ( int startChar, int endChar ) : void
startChar int
endChar int
리턴 void

QuoteChar() 공개 메소드

Specify that a particular character is a quote character. Character table type manipulation method.
public QuoteChar ( int c ) : void
c int
리턴 void

ResetCharTypeTable() 공개 메소드

Clear the character type settings. This leaves them unset, as opposed to the default. Use SetDefaults() for default settings.
public ResetCharTypeTable ( ) : void
리턴 void

SetDefaults() 공개 메소드

Setup default parse behavior. This resets to same behavior as on construction.
public SetDefaults ( ) : bool
리턴 bool

SetupForCodeParse() 공개 메소드

Apply settings which are commonly used for code parsing C-style code, including C++, C#, and Java.
public SetupForCodeParse ( ) : bool
리턴 bool

StreamTokenizerSettings() 공개 메소드

Default constructor.
public StreamTokenizerSettings ( ) : System
리턴 System

StreamTokenizerSettings() 공개 메소드

Copy constructor.
public StreamTokenizerSettings ( StreamTokenizerSettings other ) : System
other StreamTokenizerSettings
리턴 System

WhitespaceChar() 공개 메소드

Specify that a character is a whitespace character. Character table type manipulation method. This type is exclusive with other types.
public WhitespaceChar ( int c ) : void
c int The character.
리턴 void

WhitespaceChars() 공개 메소드

Specify that a range of characters are whitespace characters. Character table type manipulation method. This adds the characteristic to the char(s), rather than overwriting other characteristics.
public WhitespaceChars ( int startChar, int endChar ) : void
startChar int First character.
endChar int Last character.
리턴 void

WordChar() 공개 메소드

Specify that a particular character is a word character. Character table type manipulation method. This adds the type to the char(s), rather than overwriting other types.
public WordChar ( int c ) : void
c int The character.
리턴 void

WordChars() 공개 메소드

Specify that a range of characters are word characters. Character table type manipulation method. This adds the type to the char(s), rather than overwriting other types.
public WordChars ( int startChar, int endChar ) : void
startChar int First character.
endChar int Last character.
리턴 void

WordChars() 공개 메소드

Specify that a string of characters are word characters. Character table type manipulation method. This adds the type to the char(s), rather than overwriting other types.
public WordChars ( string s ) : void
s string
리턴 void