REP_MARKED_LINES
Name
REP_MARKED_LINES
Purpose
Edit a text array by replacing lines that have markers.
Category
Calling Sequence
rep_marked_lines, txt, s
Inputs
s = Structure with replacement strings. in
Keyword Parameters
Keywords
DELIMITER=del Delimiter string (def='$$').
Outputs
txt = Text array to edit. in, out
Common Blocks
Notes
Notes: Lines in the text array may contain marker strings
to be replaced by specified values found in structure s.
The line in txt to be replaced must contain nothing other
than the marker string. For example:
$$text$$
could be a line in the text array.
If the given structure, s, contains the tag TEXT then the
value from the structure will replace that line in txt.
The tag in the marker string must match a tag in the
structure (case is ignored) or it will not be changed.
The replacement value from the structure may be an array.
See rep_txtmarks to deal with markers in a line.
Modification History
R. Sterner, 2010 Jul 20
R. Sterner, 2012 Feb 22 --- Corrected error with case match.
Copyright (C) 2010, Johns Hopkins University/Applied Physics Laboratory
This software may be used, copied, or redistributed as long as it is not
sold and this copyright notice is reproduced on each copy made. This
routine is provided as is without any express or implied warranties
whatsoever. Other limitations apply as described in the file disclaimer.txt.