* [Caml-list] PCRE: Invalid_argument("Pcre.get_offset_start: illegal offset")
@ 2010-12-24 4:03 oliver
2010-12-24 14:25 ` oliver
0 siblings, 1 reply; 4+ messages in thread
From: oliver @ 2010-12-24 4:03 UTC (permalink / raw)
To: caml-list
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.
Any idea?
Ciao,
Oliver
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Caml-list] PCRE: Invalid_argument("Pcre.get_offset_start: illegal offset")
2010-12-24 4:03 [Caml-list] PCRE: Invalid_argument("Pcre.get_offset_start: illegal offset") oliver
@ 2010-12-24 14:25 ` oliver
2010-12-25 20:12 ` Markus Mottl
0 siblings, 1 reply; 4+ messages in thread
From: oliver @ 2010-12-24 14:25 UTC (permalink / raw)
To: caml-list
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Caml-list] PCRE: Invalid_argument("Pcre.get_offset_start: illegal offset")
2010-12-24 14:25 ` oliver
@ 2010-12-25 20:12 ` Markus Mottl
2010-12-25 20:29 ` oliver
0 siblings, 1 reply; 4+ messages in thread
From: Markus Mottl @ 2010-12-25 20:12 UTC (permalink / raw)
To: oliver; +Cc: caml-list
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Caml-list] PCRE: Invalid_argument("Pcre.get_offset_start: illegal offset")
2010-12-25 20:12 ` Markus Mottl
@ 2010-12-25 20:29 ` oliver
0 siblings, 0 replies; 4+ messages in thread
From: oliver @ 2010-12-25 20:29 UTC (permalink / raw)
To: caml-list
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-12-25 20:29 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-24 4:03 [Caml-list] PCRE: Invalid_argument("Pcre.get_offset_start: illegal offset") oliver
2010-12-24 14:25 ` oliver
2010-12-25 20:12 ` Markus Mottl
2010-12-25 20:29 ` oliver
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox