Alphabet Class |
Namespace: Algs4Net
public class Alphabet
The Alphabet type exposes the following members.
Name | Description | |
---|---|---|
![]() | Alphabet |
Initializes a new alphabet using characters 0 through 255. |
![]() | Alphabet(String) |
Initializes a new alphabet from the given set of characters. |
Name | Description | |
---|---|---|
![]() | LgR |
Returns the binary logarithm of the number of characters in this alphabet. |
![]() | Radix |
Returns the number of characters in this alphabet (the radix). |
Name | Description | |
---|---|---|
![]() | Contains |
Returns true if the argument is a character in this alphabet. |
![]() ![]() | MainTest |
Demo test the Alphabet data type. |
![]() | ToChar |
Returns the character corresponding to the argument index. |
![]() | ToChars |
Returns the characters corresponding to the argument indices. |
![]() | ToIndex |
Returns the index corresponding to the argument character. |
![]() | ToIndices |
Returns the indices corresponding to the argument characters. |
Name | Description | |
---|---|---|
![]() ![]() | Ascii |
The ASCII alphabet (0-127). |
![]() ![]() | Base64 |
The base-64 alphabet (64 characters). |
![]() ![]() | Binary |
The binary alphabet { 0, 1 }. |
![]() ![]() | Decimal |
The decimal alphabet { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }. |
![]() ![]() | Dna |
The DNA alphabet { A, C, T, G }. |
![]() ![]() | ExtendedAscii |
The extended ASCII alphabet (0-255). |
![]() ![]() | Hexadecimal |
The hexadecimal alphabet { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F }. |
![]() ![]() | LowerCase |
The lowercase alphabet { a, b, c, ..., z }. |
![]() ![]() | Octal |
The octal alphabet { 0, 1, 2, 3, 4, 5, 6, 7 }. |
![]() ![]() | Protein |
The protein alphabet { A, C, D, E, F, G, H, I, K, L, M, N, P, Q, R, S, T, V, W, Y }. |
![]() ![]() | Unicode16 |
The Unicode 16 alphabet (0-65,535). |
![]() ![]() | UpperCase |
The uppercase alphabet { A, B, C, ..., Z }. |
The members of Alphabet follows the .NET convention to use lower case to name constants.
This class is a C# port from the original Java class Alphabet implementation by the respective authors.