WordRem()
Removes characters from a string
Syntax
WordRem( <cDeleteThisDoubleCharacters>, <cString> ) -> cReducedString
Arguments
<cDeleteThisDoubleCharacters> specifies the double characters that should be deleted in <cString>
<cString>) is the string that should be processed
Returns
<cReducedString> is a string where the double characters specified in <cDeleteThisDoubleCharacters> are deleted
Description
The WordRem() function deletes the double characters specified in <cDeleteThisDoubleCharacters> from <cString>.
Examples
? WordRem( "abcd", "0ab1cd" ) // "0ab1" ? WordRem( "abcd", "ab0cd1" ) // "0cd1"
Tests
WordRem( "abcd", "0ab1cd" ) == "0ab1" WordRem( "abcd", "ab0cd1" ) == "0cd1"
Compliance
WordRem() is a new function available only in Harbour’s CT3.
Platforms
All
Files
Source is charonly.c, library is ct3.
Seealso
CHARONLY(), CHARREM(), WORDONLY()