WikiFunctions.Word.IsText C# (CSharp) Method

IsText() private static method

private static IsText ( char ch ) : bool
ch char
return bool
        private static bool IsText(char ch)
        {
            // Standard alphanumeric
            if ((ch >= '0' && ch <= '9') ||
                (ch == '_') ||
                (ch >= 'A' && ch <= 'Z') ||
                (ch >= 'a' && ch <= 'z'))
            {
                return true;
            }
            // Punctuation and control characters
            if (ch < 0xc0) return false;
            // Thai, return false so it gets split up
            if (ch >= 0xe00 && ch <= 0xee7) return false;
            // Chinese/Japanese, same
            if (ch >= 0x3000 && ch <= 0x9fff) return false;
            //if (ch >= 0x20000 && ch <= 0x2a000) return false;
            // Otherwise assume it's from a language that uses spaces
            return true;
        }