Next Previous Contents

68. strcompress

Synopsis

Remove excess whitespace characters from a string

Usage

String_Type strtrim (String_Type s, String_Type white)

Description

The strcompress function compresses the string s by removing all repeated characters specified by by the characters of white from the interior of s. In addition, it also removes all leading and trailing characters from s that are part of white.

Example

The expression

    strcompress (",;apple,,cherry;,banana", ",;");
returns the string @"apple,cherry;banana"@.
See Also

strtrim


Next Previous Contents