ASN1C C# Runtime Library
7.8
|
Public Member Functions | |
Asn1DiscreteCharSet (System.String charSet) | |
Asn1DiscreteCharSet (int[] charSet) | |
override int | GetCharAtIndex (int index) |
override int | GetCharIndex (int charValue) |
override bool | validate (String s) |
Public Member Functions inherited from Asn1CharSet | |
virtual int | GetNumBitsPerChar (bool aligned) |
Protected Member Functions | |
bool | helpValidate (char c) |
Properties | |
override int | MaxValue [get] |
Properties inherited from Asn1CharSet | |
abstract int | MaxValue [get] |
This class is used to represent a discrete set of characters from a permitted alphabet.
Asn1DiscreteCharSet | ( | System.String | charSet | ) |
This constructor sets the permitted alphabet chracter set
charSet | Permitted alphabet character set |
Asn1DiscreteCharSet | ( | int [] | charSet | ) |
This constructor sets the permitted alphabet chracter set
charSet | Permitted alphabet character set |
|
virtual |
This method will fetch the character from the permitted alphabet at the given index.
index | Index of character within the character set |
Asn1ConsVioException | Thrown if index not within define range |
Implements Asn1CharSet.
References Diag.Prtln().
|
virtual |
This method will determine the index of the given character within the permitted alphabet character set.
charValue | Character value to search for |
Asn1ConsVioException | thrown if 'charValue' not found in set |
Implements Asn1CharSet.
|
protected |
This function helps validate a character string by checking a character to see if it is in the character set. It returns false if a character is not contained in the set and true otherwise.
|
virtual |
This method will validate a character string by comparing its contents to the character set. If a character string contains characters that are not in the character set, this method will return false. Otherwise it returns true.
s | The string to be validated. |
Implements Asn1CharSet.
|
get |
Gets Upper Bound Character or Character with max int value. It will determine the maximum value of the given character within the permitted alphabet character set. As the charset is canonical order, max value is of the last character.