ASN1C C# Runtime Library
7.8
|
Public Member Functions | |
abstract int | GetCharAtIndex (int index) |
abstract int | GetCharIndex (int charValue) |
virtual int | GetNumBitsPerChar (bool aligned) |
abstract bool | validate (String s) |
Properties | |
abstract int | MaxValue [get] |
This is the base class for representing character sets that are defined in ASN.1 permitted alphabet constraints.
|
pure virtual |
This method will fetch the character from the permitted alphabet at the given index.
index | Index of character within the character set |
Asn1ConsVioException | Index not within define range |
Implemented in Asn1CharRange, and Asn1DiscreteCharSet.
Referenced by Asn1UniversalString.Decode(), and Asn1PerDecodeBuffer.DecodeCharString().
|
pure virtual |
This method will determine the index of the given character within the permitted alphabet character set.
charValue | Character value to search for |
Asn1ConsVioException | Character not found in set |
Implemented in Asn1CharRange, and Asn1DiscreteCharSet.
Referenced by Asn1UniversalString.Encode(), and Asn1PerEncodeBuffer.EncodeCharString().
|
virtual |
This method will return the number of bits-per-character.
aligned | Boolean value indicating whether number of aligned (true) or unaligned (false) characters should be returned. |
Referenced by Asn1UniversalString.Decode(), Asn1PerDecodeBuffer.DecodeCharString(), Asn1UniversalString.Encode(), Asn1PerEncodeBuffer.EncodeCharString(), and Asn1CharString.validate().
|
pure 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. |
Implemented in Asn1CharRange, and Asn1DiscreteCharSet.
Referenced by Asn1CharString.validate(), and Asn1UniversalString.validate().
|
get |
Gets the maximum value of the character within the given permitted alphabet character set.
Value:
Upper Bound Character or Character with max int value
Referenced by Asn1UniversalString.Decode(), Asn1PerDecodeBuffer.DecodeCharString(), Asn1UniversalString.Encode(), and Asn1PerEncodeBuffer.EncodeCharString().