Method IsValidCategory
IsValidCategory(char)
Checks whether the specified char category is valid for the input.
bool IsValidCategory(char ch)
Parameters
ch
charCharacter which is used to get the category.
Returns
- bool
true
if category is valid for the input;false
otherwise.
IsValidCategory(UnicodeCategory)
Checks whether the specified char category is valid for the input.
bool IsValidCategory(UnicodeCategory cat)
Parameters
cat
UnicodeCategoryCategory to check.
Returns
- bool
true
if category is valid for the input;false
otherwise.