RANGEREM()

Remove characters within a certain ASCII range from a string

Syntax

RANGEREM (<cChar1|nChar1>, <cChar2|nChar2>, <cString>) -> cString

Description

TODO: add documentation
Examples
      ? rangerem ("0","9","year2002.dbf") // "year.dbf", remove all digits
      ? rangerem ("9","0","year2002.dbf") // "22", testing removal from "9" to chr(255)
                                          // and from chr(0) to "0"
      ? rangerem ("0","9","yearcurr.dbf") // "yearcurr.dbf", test leaving string untouched
Tests
      rangerem ("0","9","year2002.dbf") == "year.dbf"
      rangerem ("9","0","year2002.dbf") == "22"
      rangerem ("0","9","yearcurr.dbf") == "yearcurr.dbf"
Status

Started

Compliance

RANGEREM() is compatible with CT3's RANGEREM().

Platforms

All

Files

Source is range.c, library is libct.

See Also