f_all_indexof.srf 658 B

1234567891011121314151617181920212223242526272829
  1. $PBExportHeader$f_all_indexof.srf
  2. global type f_all_indexof from function_object
  3. end type
  4. forward prototypes
  5. global subroutine f_all_indexof (string arg_text, string arg_taglist[], ref s_email_indexof arg_rslt[])
  6. end prototypes
  7. global subroutine f_all_indexof (string arg_text, string arg_taglist[], ref s_email_indexof arg_rslt[]);long cnt,row,max,pos
  8. string tag
  9. max=len(arg_text)
  10. for row=1 to upperbound(arg_taglist)
  11. pos=1
  12. cnt=1
  13. tag=arg_taglist[row]
  14. pos=pos(arg_text,tag,pos)
  15. do while pos>0
  16. arg_rslt[row].list[cnt]=pos
  17. arg_rslt[row].match[cnt]=-1
  18. cnt++
  19. pos=pos(arg_text,tag,pos+1)
  20. loop
  21. // arg_rslt[row].list=rslt
  22. next
  23. end subroutine