NAME:
STRWHERE (function)
PURPOSE:
return position *array* for occurence of a character in
a string
CATEGORY:
string tools
CALLING SEQUENCE:
pos = STRWHERE(str, schar [,Count] )
INPUTS:
STR -> the string
SCHAR -> the character to look for
KEYWORD PARAMETERS:
none.
OUTPUTS:
COUNT -> (optional) The number of matches that were found
The function returns an index array similar to the
result of the where function
SUBROUTINES:
REQUIREMENTS:
NOTES:
EXAMPLE:
ind = strwhere('abcabcabc','a')
; returns [ 0, 3, 6 ]
MODIFICATION HISTORY:
mgs, 02 Jun 1998: VERSION 1.00
bmy, 30 Jun 1998: - now returns COUNT, the number
of matches that are found (this is
analogous to the WHERE command)