CharSList()

CHARSLIST()

Generates a sorted list of all characters in a string

Syntax

      CHARSLIST( [<cString>] ) -> cSortedCharacterList

Arguments

[<cString>] is the string for whom the function generates a sorted list of all characters Default: “” (empty string)

Returns

<cSortedCharacterList> a sorted list of the characters in <cString>

Description

The CHARLIST() function generates a sorted list of those characters that are contained in <cString>. This list can contain each character only once, so that its maximum length is 256. The function gives the same result as CHARSORT(CHARLIST(<cString>))

Examples

      ? charslist( "Hello World !" ) // --> " !HWdelor"

Tests

      charslist( "Hello World !" ) == " !HWdelor"
      charslist( "Hello World !" ) == charsort (charlist ("Hello World !"))
      charslist( NIL ) == ""

Compliance

CHARSLIST() is only available in Harbour’s CT3 library.

Platforms

All

Files

Source is charlist.c, library is libct.

Seealso

CHARNOLIST(), CHARLIST(), CHARHIST()

Advertisements

2 responses to “CharSList()

  1. Pingback: Harbour String Functions | Viva Clipper !

  2. Pingback: Harbour All Functions – C | 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