/* $DOC$ $NAME$ CharRepl() $CATEGORY$ CT3 string functions $ONELINER$ Replacement of characters $SYNTAX$ CharRepl( , <[@]cString>, , [] ) -> cString $ARGUMENTS$ is a string of characters that should be replaced <[@]cString> is the processed string is a string of characters that replace the one of [] sets the replacement method (see description) Default: .F. $RETURNS$ the processed string $DESCRIPTION$ The CharRepl() function replaces certain characters in with others depending on the setting of . If is set to .F., the function takes the characters of one after the other, searches for them in and, if successful, replaces them with the corresponding character of . Be aware that if the same characters occur in both and , the character on a certain position in can be replaced multiple times. if is set to .T., the function takes the characters in one after the other, searches for them in and, if successful, replaces them with the corresponding character of . Note that no multiple replacements are possible in this mode. If is shorter than , the last character of is used as corresponding character for the the "rest" of . One can omit the return value by setting the CSetRef() switch to .T., but then one must pass by reference to get the result. $EXAMPLES$ ? CharRepl( "1234", "1x2y3z", "abcd" ) // "axbycz" ? CharRepl( "abcdefghij", "jhfdb", "1234567890" ) // "08642" ? CharRepl( "abcdefghij", "jhfdb", "12345" ) // "55542" ? CharRepl( "1234", "1234", "234A" ) // "AAAA" ? CharRepl( "1234", "1234", "234A", .T. ) // "234A" $STATUS$ Ready $COMPLIANCE$ CharRepl() is compatible with CT3's CharRepl(). $PLATFORMS$ All $FILES$ Library is hbct. $SEEALSO$ WordRepl(), PosRepl(), RangeRepl(), CSetRef() $END$ */