Welcome to the Harris Geospatial product documentation center. Here you will find reference guides, help documents, and product libraries.


  >  Docs Center  >  Libraries  >  Daithi  >  STRMERGE

STRMERGE

STRMERGE

Name


      STRMERGE

Purpose


      Merge two string arrays.

Category


      Strings

Calling Sequence


      result = StrMerge(s1,s2)

Inputs


      s1: a string array
      s2: a string array

Keywords


      IN_BOTH: If this keyword is set only strings that are present in
              both s1 and s2 will remain in the result.
 

Outputs


      result: The combination of the input string arrays, sorted.

Side Effects


      The output array (result) is sorted (by IDL's SORT and UNIQ) functions.

Example


      IDL> a=String([1,2,3,4,5,6,7,8,9,0])
      IDL> b=String([5,6,7,10,11,12,13,14,15])
      IDL> print,strmerge(a,b)
        0 1 2 3 4 5 6 7
          8 9 10 11 12 13 14 15
      IDL> print,strmerge(' hello',b)
      5 6 7 10 11 12 13 14
      15 hello

Modification History


  Written by: Edward C. Wiebe, 2002-05-16.
      Modified by: Edward C. Wiebe, 2002-07-23 (Added IN_BOTH keyword.)



© 2018 Harris Geospatial Solutions, Inc. |  Privacy Policy
My Account    |    Store    |    Contact Us