ToBeReviewed/STRING/
strwhere.pro
return position *array* for occurrence of a character in a string
strwhere
String
result = strwhere(str, schar, Count)
Return value
COUNT {out}{optional}
The number of matches that were found
The function returns an index array similar to the
result of the where function
Parameters
str
in
required
the string
schar
in
required
the character to look for
Count
Examples
ind = strwhere('abcabcabc','a')
; returns [ 0, 3, 6 ]
Version history
Version
$Id: strwhere.pro 157 2006-08-21 09:01:50Z navarro $
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)
Produced by IDLdoc 2.0 on Tue Aug 29 14:50:32 2006.