Class Alphabets
java.lang.Object
org.emau.icmvc.ganimed.ttp.psn.alphabets.Alphabets
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic AlphabetcreateAlphabet(String alphabetString) Creates an alphabet from an alphabet string, which must be either the name of a subclass ofAlphabet, a comma-separated list of characters, or a single character.static booleanisCustomAlphabet(String alphabetString) static intutf8mb4ByteCount(char c) static int
-
Field Details
-
CUSTOM
- See Also:
-
HEX
- See Also:
-
NUMBERS
- See Also:
-
NUMBERS_WITHOUT_ZERO
- See Also:
-
NUMBERS_X
- See Also:
-
SYMBOL_31
- See Also:
-
SYMBOL_32
- See Also:
-
-
Method Details
-
createAlphabet
Creates an alphabet from an alphabet string, which must be either the name of a subclass ofAlphabet, a comma-separated list of characters, or a single character.- Parameters:
alphabetString- the alphabet string- Returns:
- an appropriate alphabet instance for the alphabet string
- Throws:
InvalidAlphabetException- for an invalid alphabet string
-
isCustomAlphabet
-
utf8mb4ByteCount
-
utf8mb4ByteCount
public static int utf8mb4ByteCount(char c)
-