From: oliver@first.in-berlin.de
To: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] PCRE: Invalid_argument("Pcre.get_offset_start: illegal offset")
Date: Sat, 25 Dec 2010 21:29:10 +0100 [thread overview]
Message-ID: <20101225202910.GB10952@siouxsie> (raw)
In-Reply-To: <AANLkTikcBVymK_yPi4vNLt_d2UzS4aT3O32QcAbmCFZE@mail.gmail.com>
Hi,
yes, you are right, and I had tomatoes on my eyes...
I looked for "get_offset_start" as exception
and had Failure as thrown exception in mind,
even "Invalid_argument" is the exception,
which of course is documented ...and that I already wrote
some lines below...
It seems I had to less sleep during the last days...
Sorry for the traffic that my messed tired mind created. ;)
Ciao,
Oliver
On Sat, Dec 25, 2010 at 03:12:55PM -0500, Markus Mottl wrote:
> It is documented: the API-documentation clearly says that
> Invalid_argument is going to be raised if you are trying to access a
> nonexistent substring, and it is being raised here.
>
> Regards,
> Markus
>
> On Fri, Dec 24, 2010 at 09:25, <oliver@first.in-berlin.de> wrote:
> > On Fri, Dec 24, 2010 at 05:03:06AM +0100, oliver@first.in-berlin.de wrote:
> >> Hello,
> >>
> >> I could not find a description in the PCRE-documentation,
> >> where this error comes from.
> >>
> >> This does occur on my call to get_substring,
> >> but get_substring has documented exceptions,
> >> in case something goes wrong:
> >>
> >> * Invalid_argument if n is not in the range of the number of substrings.
> >> * Not_found if the corresponding subpattern did not capture a substring.
> > [...]
> >
> > It seems that trying to extract more substrings than are available,
> > this exception is raised.
> >
> > This behaviour seems not to be documented.
> >
> > Ciao,
> > Oliver
> >
> > --
> > Caml-list mailing list. Subscription management and archives:
> > https://sympa-roc.inria.fr/wws/info/caml-list
> > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> > Bug reports: http://caml.inria.fr/bin/caml-bugs
> >
> >
>
>
>
> --
> Markus Mottl http://www.ocaml.info markus.mottl@gmail.com
prev parent reply other threads:[~2010-12-25 20:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-24 4:03 oliver
2010-12-24 14:25 ` oliver
2010-12-25 20:12 ` Markus Mottl
2010-12-25 20:29 ` oliver [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20101225202910.GB10952@siouxsie \
--to=oliver@first.in-berlin.de \
--cc=caml-list@yquem.inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox