private static bool IsPrintable(UnicodeCharacterType cat) { switch (cat) { case UnicodeCharacterType.OtherControl: case UnicodeCharacterType.LetterModifier: //case UnicodeCharacterType.SymbolModifier: case UnicodeCharacterType.OtherSurrogate: return(false); } return(true); }
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); }
public static char FirstCode(this UnicodeCharacterType type) { return(_unicodeCharacterCodes[(int)type][0]); }
public static bool IsLetter(this UnicodeCharacterType type) { return(FirstCode(type) == 'L'); }
public static string GetCode(this UnicodeCharacterType type) { return(_unicodeCharacterCodes[(int)type]); }