Example #1
0
        private static bool IsPrintable(UnicodeCharacterType cat)
        {
            switch (cat)
            {
            case UnicodeCharacterType.OtherControl:
            case UnicodeCharacterType.LetterModifier:
            //case UnicodeCharacterType.SymbolModifier:
            case UnicodeCharacterType.OtherSurrogate:
                return(false);
            }

            return(true);
        }
Example #2
0
        private static bool IsLetterOrDigit(UnicodeCharacterType cat)
        {
            switch (cat)
            {
            case UnicodeCharacterType.LetterUppercase:
            case UnicodeCharacterType.LetterLowercase:

            case UnicodeCharacterType.LetterTitlecase:
            //case UnicodeCharacterType.LetterModifier:
            case UnicodeCharacterType.LetterOther:

            case UnicodeCharacterType.NumberDecimalDigit:
            case UnicodeCharacterType.NumberLetter:
            case UnicodeCharacterType.NumberOther:

                return(true);
            }

            return(false);
        }
Example #3
0
 public static char FirstCode(this UnicodeCharacterType type)
 {
     return(_unicodeCharacterCodes[(int)type][0]);
 }
Example #4
0
 public static bool IsLetter(this UnicodeCharacterType type)
 {
     return(FirstCode(type) == 'L');
 }
Example #5
0
 public static string GetCode(this UnicodeCharacterType type)
 {
     return(_unicodeCharacterCodes[(int)type]);
 }