caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* ocamlagrep anybody ?
@ 2006-05-08  7:57 Ingo Bormuth
  2006-05-08 12:10 ` [Caml-list] " Xavier Leroy
  0 siblings, 1 reply; 3+ messages in thread
From: Ingo Bormuth @ 2006-05-08  7:57 UTC (permalink / raw)
  To: caml-list


Hi list,

ocamlagrep produces strange results in my hands:

  let p =  Agrep.pattern "test" ;;
  let s = "Hello test world." ;;
  let l = String.length s ;;

  Agrep.errors_substring_match p s ~numerrs:0 ~pos:0 ~len:l

    ==> returns 0   ( as expected )

  Agrep.errors_substring_match p s ~numerrs:3 ~pos:0 ~len:l 

    ==> returns 3   ( why ??? Should be 0 !!! )

I tried many other combinations and do not get what's going on.
The library is around since ages. What did I miss.

Thanks
        Ingo


-- 
Ingo Bormuth, voicebox & telefax: +49-12125-10226517       '(~o-o~)'
public key 86326EC9, http://ibormuth.efil.de/contact   --ooO--(.)--Ooo--


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-05-08 15:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-08  7:57 ocamlagrep anybody ? Ingo Bormuth
2006-05-08 12:10 ` [Caml-list] " Xavier Leroy
2006-05-08 15:35   ` Ingo Bormuth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).