# RANGEREPL

Replace characters within a certain ASCII range from a string

Syntax

  RANGEREPL (<cChar1|nChar1>, <cChar2|nChar2>,
  <[@]cString>, <cReplacementChar|nReplacementChar>) -> cString

Description

  TODO: add documentation

Examples

          ? rangerepl ("0","9","year2002.dbf","?") // "year????.dbf", replace all digits
          ? rangerepl ("9","0","year2002.dbf","?") // "????2??2????", testing replacement from "9" to chr(255)
                                                   // and from chr(0) to "0"
          ? rangerepl ("0","9","yearcurr.dbf","?") // "yearcurr.dbf", test leaving string untouched
    Tests
          rangerepl ("0","9","year2002.dbf","?") == "year????.dbf"
          rangerepl ("9","0","year2002.dbf","?") == "????2??2????"
          rangerepl ("0","9","yearcurr.dbf","?") == "yearcurr.dbf"

Status

  Started

Compliance

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

Platforms

  All

Files

  Source is range.c, library is libct.

See Also

- RANGEREM()