POV-Ray : Newsgroups : povray.general : Doc bug - substr() : Re: Doc bug - substr() Server Time
8 Aug 2024 06:16:42 EDT (-0400)
  Re: Doc bug - substr()  
From: Wlodzimierz ABX Skiba
Date: 21 Feb 2001 18:43:50
Message: <3a9452b6@news.povray.org>
Rune wrote in message <3a942303@news.povray.org>...
> In the POV-Ray documentation on the page about string functions the
> following is stated:

that's funny
looking at time of your post it seems that I've met this bug at the same moment
perhaps even in solving the same problem :-)

> > substr("ABCDEFGHI",4,2) evaluates to the string "EF".
> However, there are two errors. The last but one line should read:
> substr("ABCDEFGHI",4,2) evaluates to the string "DE".

I can confirm

> > If P+L>strlen(S) an error occurs.
> If P+L+1>strlen(S) an error occurs.

I can confirm

> Can anybody confirm?

yes

> And is this a known bug?


I don't know

ABX


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.