Previous: chrord Up: ../chrrtn.html Next: chrrix


CHRRI2

 INTEGER FUNCTION  CHRRI2 (TEXTA,LENA,TEXTB,LENB)
 (Reverse Substring Index Ignoring Case)

 Given two  character strings  defined by  the arguments  TEXT,LENA  and
 TEXTB,LENB, search the first string backward for the last occurrence of
 the second  string.   If either  of  the  arguments LENA  or  LENB  are
 invalid, or if the second string is  not found in the first, return  0.
 Otherwise, return its index, or  position, in TEXTA, counting from  the
 first character stored in TEXTA(*).  The result returned is thus always
 .GE. 0.