EAPEncodeEncodeBase28 Method |
Encodes the specified integer as a base-28 string. The base-28 character set
constists of the characters "23456789BCDFGHJKMNPQRSTVWXYZ" (in index order).
The character excludes vowels to help avoid offensive words in the encoding,
and omits the characters 0, 1, L, and I to avoid confusion between digits and
look-alike alphabetic characters.
Namespace:
NetQuarry
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax public static string EncodeBase28(
int n,
int minLength = 0
)
Public Shared Function EncodeBase28 (
n As Integer,
Optional minLength As Integer = 0
) As String
Parameters
- n
- Type: SystemInt32
The number to encode. - minLength (Optional)
- Type: SystemInt32
The minimum encoding length, ignored if zero or negative.
Return Value
Type:
StringThe encoded string, guaranteed to be at least minLength long.
See Also