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

WORDPOS

WORDPOS

Name


      WORDPOS

Purpose


      Find position of a word in a string.

Category


Calling Sequence


      pos = wordpos( ref, wd, st)

Inputs


      ref = reference string to search. in
      wd = word to find. in
      st = optional search start (def=0). in

Keyword Parameters


Keywords


        MAX=mx Max search position (def=end of string).
        /CHAR Positions are character positions (from
            0=first char), else word numbers (0=first word).
        OFFSET=off Word offset. Off=0 means wd, off=1 means
          the word after wd, off=-1 means the word before wd, ...
        /IGNORE_CASE means ignore case.

Outputs


      pos = Position where wd was found. out
        pos = -1 if wd not found in ref.

Common Blocks


Notes


Modification History


      R. Sterner, 2002 Mar 25
      R. Sterner, 2011 Jul 01 --- Converted arrays from () to [].
  Copyright (C) 2002, 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.



© 2024 NV5 Geospatial Solutions, Inc. |  Legal
   Contact Us