Alsing.Windows.Forms.SyntaxBox.EditViewControl.CharType C# (CSharp) Method

CharType() private static method

private static CharType ( string s ) : int
s string
return int
        private static int CharType(string s)
        {
            const string g1 = " \t";
            const string g2 = ".,-+'?´=)(/&%¤#!\"\\<>[]$£@*:;{}";

            if (g1.IndexOf(s) >= 0)
                return 1;

            if (g2.IndexOf(s) >= 0)
                return 2;

            return 3;
        }