char_to_uint¶
-
letter_type
libsemigroups::fpsemigroup::KnuthBendix
::
char_to_uint
(char a) const¶ Convert a char to a libsemigroups::letter_type representing the same generator of the finitely presented semigroup represented by
this
.- Return
- Complexity.
Constant.
- Parameters
a
: the string to convert.
- Exceptions
LibsemigroupsException
: ifa
is not in alphabet().