WordRem()

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()

Advertisements

2 responses to “WordRem()

  1. Pingback: Harbour All Functions – W | Viva Clipper !

  2. Pingback: Harbour String Functions | Viva Clipper !

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s