StringTools
IsConjugate
test whether two strings are conjugate
Calling Sequence
Parameters
Description
Examples
IsConjugate( s, t )
s
-
string
t
The IsConjugate(s,t) command tests whether its arguments are conjugate strings. Two strings are conjugate if one is a cyclic permutation of the other.
If s and t are empty strings, the command returns true.
All of the StringTools package commands treat strings as (null-terminated) sequences of 8-bit (ASCII) characters. Thus, there is no support for multibyte character encodings, such as unicode encodings.
with⁡StringTools:
IsConjugate⁡abc,bca
true
IsConjugate⁡abc,acb
false
IsConjugate⁡abc,abcd
See Also
Download Help Document