>  Docs Center  >  Libraries  >  JHU/APL/S1R  >  REP_TXTMARKS






      Replace marker strings in a text array.


Calling Sequence

      rep_txtmarks, txt, s


      s = Structure with replacement strings. in

Keyword Parameters


        DELIMITER=del Delimiter string (def='$$').


      txt = Text array to edit. in, out

Common Blocks


      Notes: Lines in the text array may contain marker strings
        to be replaced by specified values. For example:
            Date = $$date$$, Temperature = $$TEMP$$
        could be a line in the text array.
        The given structure, s, might contain the tags DATE
        and TEMP with the current values. The values from the
        structure will replace the marker strings (including the
        delmiters). The tag in the marker string must match a
        tag in the structure or it will not be changed.
        Valid marker strings will be replaced from left to right
        in each line, consuming the delimiters that go with them.
        Case is ignored for the tag names in the marker strings.

Modification History

      R. Sterner, 2009 May 28
      R. Sterner, 2009 Jun 01 --- Handled the case when tag not found.
      R. Sterner, 2010 May 07 --- Improved one line description.
      R. Sterner, 2010 Jul 20 --- Added rep_marked_lines.
  Copyright (C) 2009, 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.

© 2019 Harris Geospatial Solutions, Inc. |  Legal
My Account    |    Store    |    Contact Us