Version française
Home     About     Download     Resources     Contact us    
Browse thread
ocamlagrep anybody ?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Ingo Bormuth <ibormuth@e...>
Subject: ocamlagrep anybody ?

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--