text: public static byte GetType(int ch){switch (CharUnicodeInfo.GetUnicodeCategory((char)ch)){case UnicodeCategory.UppercaseLetter:return WordDelimiterFilter.UPPER;case UnicodeCategory.LowercaseLetter:return WordDelimiterFilter.LOWER;case UnicodeCategory.TitlecaseLetter:case UnicodeCategory.ModifierLetter:case UnicodeCategory.OtherLetter:case UnicodeCategory.NonSpacingMark:case UnicodeCategory.EnclosingMark: case UnicodeCategory.SpacingCombiningMark:return WordDelimiterFilter.ALPHA;case UnicodeCategory.DecimalDigitNumber:case UnicodeCategory.LetterNumber:case UnicodeCategory.OtherNumber:return WordDelimiterFilter.DIGIT;case UnicodeCategory.Surrogate:return WordDelimiterFilter.ALPHA | WordDelimiterFilter.DIGIT;default:return WordDelimiterFilter.SUBWORD_DELIM;}}