This page was created by the IDL library routine
mk_html_help2.
Last modified: Fri Nov 2 10:24:04 2012.
NAME:
STRREPLACE
PURPOSE:
The STRREPLACE procedure replaces the contents of one string
with another. The first occurrence of the search substring, Find
within the source string, String is replaced by the string,
Replacement.
CATEGORY:
String Processing.
CALLING SEQUENCE:
STRREPLACE, String, Find, Replacement
INPUTS:
String: The string to have substring(s) replaced. If String is
an array, Find is replaced by Replacement in the first
occurrence of Find of every element of the array.
Find: The scalar substring to be replaced. If this argument is
not a string, it is converted using IDL's default
formatting rules.
Replacement: A scalar string to replace the Find substring. If
this argument is not a string, it is converted using IDL's
default formattting rules.
EXAMPLE:
If the variable A contains the string "IBM is fun", the
substring "IBM" can be replaced with the string "Microsoft"
by entering:
STRREPLACE, A, 'IBM', 'Microsoft'
MODIFICATION HISTORY:
Written by: Han Wen, June 1995.
(See themis/masters/strreplace.pro)
Added instrument keyword, skt_only and a few extra strings that were missed, jmm, 30-jan-2008
(See themis/masters/update_master.pro)