C# 클래스 Lex.Util

파일 보기 프로젝트 열기: YourLocalFax/OLD-Score

공개 메소드들

메소드 설명
GetNumPrefixRadix ( char c ) : int

Returns the integer radix that a given character represents for numeric literals. Returns 0 if the character is not a valid number prefix.

GetTypeFromKeyword ( string s ) : TokenType

Returns the token type associated with the given keyword

IsBuiltinTyName ( string s ) : bool

Returns true if the image represents a primitive type name.

IsCombiningChar ( int c ) : bool

Returns true for unicode characters of classes Mn or Mc.

IsConnectingChar ( int c ) : bool

Returns true for unicode characters of class Pc.

IsDecimalDigitChar ( int c ) : bool

Returns true for unicode characters of class Nd.

IsDigit ( char c ) : bool

Returns true if the character is a valid decimal digit for numeric literals.

IsDigitInRadix ( char c, int radix ) : bool

Returns true if the character is a valid digit for numeric literals in the given radix.

IsFormattingChar ( int c ) : bool

Returns true for unicode characters of class Cf.

IsIdentifierPart ( int c ) : bool

Returns true if the unicode character is an identifier start or a combining, decimal digit, connecting, or formatting char.

IsIdentifierStart ( int c ) : bool

Returns true if the unicode character is a letter char or an underscore (U+005F).

IsKw ( string s ) : bool

Returns true if the given image is a keyword.

IsLetterChar ( int c ) : bool

Returns true for unicode characters of classes Lu, Ll, Lt, Lm, Lo, or Nl.

IsNumPrefix ( char c ) : bool

Returns true if the character is valid for a number prefix, false otherwise.

IsOperator ( char c ) : bool

Returns true if the character is a valid operator character.

TokenTypeToString ( TokenType type, string @default = null ) : string

메소드 상세

GetNumPrefixRadix() 공개 정적인 메소드

Returns the integer radix that a given character represents for numeric literals. Returns 0 if the character is not a valid number prefix.
public static GetNumPrefixRadix ( char c ) : int
c char
리턴 int

GetTypeFromKeyword() 공개 정적인 메소드

Returns the token type associated with the given keyword
public static GetTypeFromKeyword ( string s ) : TokenType
s string
리턴 TokenType

IsBuiltinTyName() 공개 정적인 메소드

Returns true if the image represents a primitive type name.
public static IsBuiltinTyName ( string s ) : bool
s string
리턴 bool

IsCombiningChar() 공개 정적인 메소드

Returns true for unicode characters of classes Mn or Mc.
public static IsCombiningChar ( int c ) : bool
c int
리턴 bool

IsConnectingChar() 공개 정적인 메소드

Returns true for unicode characters of class Pc.
public static IsConnectingChar ( int c ) : bool
c int
리턴 bool

IsDecimalDigitChar() 공개 정적인 메소드

Returns true for unicode characters of class Nd.
public static IsDecimalDigitChar ( int c ) : bool
c int
리턴 bool

IsDigit() 공개 정적인 메소드

Returns true if the character is a valid decimal digit for numeric literals.
public static IsDigit ( char c ) : bool
c char
리턴 bool

IsDigitInRadix() 공개 정적인 메소드

Returns true if the character is a valid digit for numeric literals in the given radix.
public static IsDigitInRadix ( char c, int radix ) : bool
c char
radix int
리턴 bool

IsFormattingChar() 공개 정적인 메소드

Returns true for unicode characters of class Cf.
public static IsFormattingChar ( int c ) : bool
c int
리턴 bool

IsIdentifierPart() 공개 정적인 메소드

Returns true if the unicode character is an identifier start or a combining, decimal digit, connecting, or formatting char.
public static IsIdentifierPart ( int c ) : bool
c int
리턴 bool

IsIdentifierStart() 공개 정적인 메소드

Returns true if the unicode character is a letter char or an underscore (U+005F).
public static IsIdentifierStart ( int c ) : bool
c int
리턴 bool

IsKw() 공개 정적인 메소드

Returns true if the given image is a keyword.
public static IsKw ( string s ) : bool
s string
리턴 bool

IsLetterChar() 공개 정적인 메소드

Returns true for unicode characters of classes Lu, Ll, Lt, Lm, Lo, or Nl.
public static IsLetterChar ( int c ) : bool
c int
리턴 bool

IsNumPrefix() 공개 정적인 메소드

Returns true if the character is valid for a number prefix, false otherwise.
public static IsNumPrefix ( char c ) : bool
c char
리턴 bool

IsOperator() 공개 정적인 메소드

Returns true if the character is a valid operator character.
public static IsOperator ( char c ) : bool
c char
리턴 bool

TokenTypeToString() 공개 정적인 메소드

public static TokenTypeToString ( TokenType type, string @default = null ) : string
type TokenType
@default string
리턴 string