Intersectional set of two strings based on double characters
WordOnly( <cThisDoubleCharactersOnly>, <cString> ) -> cReducedString
<cThisDoubleCharactersOnly> specifies the double characters that must not be deleted in <cString>.
<cString> is the string that should be processed
<cReducedString> A string with all double characters deleted but those specified in <cThisCharactersOnly>.
The WordOnly() function calculates the intersectional set of two strings based on double characters. To do this, it deletes all double characters from <cString> that do not appear in <cThisDoubleCharacterOnly>.
? WordOnly( "AABBCCDD", "XXAAYYBBZZ" ) // "AABB" ? WordOnly( "AABBCCDD", "XAAYYYBBZZ" ) // "BB"
WordOnly( "AABBCCDD", "XXAAYYBBZZ" ) == "AABB" WordOnly( "AABBCCDD", "XAAYYYBBZZ" ) == "BB"
WordOnly() is compatible with CT3’s WordOnly().
Source is charonly.c, library is ct3.
CHARONLY(), CHARREM(), WORDREM()