Class AbstractCharValidator
Abstract implementation of the ICharValidator interface
public abstract class AbstractCharValidator : ImmutableObject, IBaseObjectWithId, INotifyPropertyChanged, ICharValidator, ICustomCharValidator, IImmutableObject, IDisposableObject, IDisposable, IBaseObject
- Inheritance
-
AbstractCharValidator
- Implements
- Derived
Methods
- AllCategoriesBad()
Sets all possible character categories (UnicodeCategory) as invalid for the input.
- AllCategoriesValid(bool)
Sets all possible character categories (UnicodeCategory) as valid or invalid for the input.
- AllCharsBad()
Sets all possible characters as invalid for the input.
- AllCharsValid(bool)
Sets all possible characters as valid or invalid for the input.
- AllowDigits()
Allows digits [0..9] for the input.
- AllowHexDigits()
Allows hex digits for the input. Hex digits are [0..9], [a..f], [A..F].
- AllowNativeDigits()
Allows native digits returned by NativeDigits for the input.
- AllowNegativeSign()
Allows negative sign chars for the input (minus).
- AllowPositiveSign()
Allows positive sign chars for the input (plus).
- BadCategories(params UnicodeCategory[])
Sets the specified character categories as invalid for the input.
- BadCategory(UnicodeCategory)
Sets the specified character category as invalid for the input.
- BadChar(char)
Sets the specified character as invalid for the input.
- BadChars(params char[])
Sets all the characters from the specified array as invalid for the input.
- BadChars(string?)
Sets all string characters as invalid for the input.
- BadRange(char, char)
Sets all the characters in the range between
minCh
andmaxCh
as invalid for the input.
- IsValid(char)
Checks whether the specified char and it's category are valid for the input.
- IsValidCategory(char)
Checks whether the specified char category is valid for the input.
- IsValidCategory(UnicodeCategory)
Checks whether the specified char category is valid for the input.
- IsValidChar(char)
Checks whether the specified char is valid for the input. This method doesn't perform checks on char category, use IsValid(char) to check both char and it's category.
- Reset()
Resets object to the initial state.
- ValidCategories(params UnicodeCategory[])
Sets the specified character categories as valid for the input.
- ValidCategories(UnicodeCategory[], bool)
Sets the specified character categories as valid or invalid for the input.
- ValidCategory(UnicodeCategory, bool)
Sets the specified character category as valid or invalid for the input.
- ValidChar(char, bool)
Sets the specified character as valid or invalid for the input.
- ValidChars(params char[])
Sets the specifieds characters as valid for the input.
- ValidChars(char[], bool)
Sets the specifieds characters as valid or invalid for the input.
- ValidChars(string?, bool)
Sets all string characters as valid or invalid for the input.
- ValidChars(string[], bool)
Sets all string characters as valid or invalid for the input.
- ValidRange(char, char, bool)
Sets all the characters in the range between
minCh
andmaxCh
as valid or invalid for the input.