Jurassic.Compiler.Lexer.IsIdentifierStartChar C# (CSharp) Method

IsIdentifierStartChar() private static method

Determines if the given character is valid as the first character of an identifier.
private static IsIdentifierStartChar ( int c ) : bool
c int The character to test.
return bool
        private static bool IsIdentifierStartChar(int c)
        {
            UnicodeCategory cat = char.GetUnicodeCategory((char)c);
            return c == '$' || c == '_' || c == '\\' ||
                cat == UnicodeCategory.UppercaseLetter ||
                cat == UnicodeCategory.LowercaseLetter ||
                cat == UnicodeCategory.TitlecaseLetter ||
                cat == UnicodeCategory.ModifierLetter ||
                cat == UnicodeCategory.OtherLetter ||
                cat == UnicodeCategory.LetterNumber;
        }