From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 3CFEBBB86 for ; Mon, 8 May 2006 10:25:08 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id k488P7io029873 for ; Mon, 8 May 2006 10:25:07 +0200 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id KAA07867 for ; Mon, 8 May 2006 10:25:05 +0200 (MET DST) Received: from efil.de (efil.de [81.3.25.37]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id k488P4LX029862 for ; Mon, 8 May 2006 10:25:04 +0200 Received: by efil.de (Postfix, from userid 1000) id 432C2EF9D9F; Mon, 8 May 2006 10:22:54 +0200 (CEST) Date: Mon, 8 May 2006 09:57:30 +0200 From: Ingo Bormuth To: caml-list@inria.fr Subject: ocamlagrep anybody ? Message-ID: <20060508075730.GA19558@kruemel> Reply-To: Ingo Bormuth Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Attribution: Ingo Bormuth X-Url: http://ibormuth.efil.de/contact User-Agent: Mutt/1.5.11 X-Miltered: at concorde with ID 445F0063.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 445F0060.003 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; ocamlagrep:01 ocamlagrep:01 agrep:01 agrep:01 ingo:98 efil:98 ingo:98 efil:98 match:02 match:02 len:02 len:02 string:02 pattern:03 let:03 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.3 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--