caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Markus Mottl <markus.mottl@gmail.com>
To: oliver@first.in-berlin.de
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] PCRE: Invalid_argument("Pcre.get_offset_start: illegal offset")
Date: Sat, 25 Dec 2010 15:12:55 -0500	[thread overview]
Message-ID: <AANLkTikcBVymK_yPi4vNLt_d2UzS4aT3O32QcAbmCFZE@mail.gmail.com> (raw)
In-Reply-To: <20101224142501.GA3936@siouxsie>

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


  reply	other threads:[~2010-12-25 20:13 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 [this message]
2010-12-25 20:29     ` oliver

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=AANLkTikcBVymK_yPi4vNLt_d2UzS4aT3O32QcAbmCFZE@mail.gmail.com \
    --to=markus.mottl@gmail.com \
    --cc=caml-list@yquem.inria.fr \
    --cc=oliver@first.in-berlin.de \
    /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;
as well as URLs for NNTP newsgroup(s).