POV-Ray : Newsgroups : povray.general : Doc bug - substr() : Doc bug - substr() Server Time
8 Aug 2024 06:20:17 EDT (-0400)
  Doc bug - substr()  
From: Rune
Date: 21 Feb 2001 15:20:19
Message: <3a942303@news.povray.org>
In the POV-Ray documentation on the page about string functions the
following is stated:

> substr(S,P,L) Sub-string from S. Returns a string that is
> a subset of the characters in parameter S starting at the
> position specified by the integer value P for a length
> specified by the integer value L. For example
> substr("ABCDEFGHI",4,2) evaluates to the string "EF".
> If P+L>strlen(S) an error occurs.

However, there are two errors. The last but one line should read:

> substr("ABCDEFGHI",4,2) evaluates to the string "DE".

And the last line should read:

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

Or something like that.

Can anybody confirm?

And is this a known bug?

Rune
--
\ Include files, tutorials, 3D images, raytracing jokes,
/ The POV Desktop Theme, and The POV-Ray Logo Contest can
\ all be found at http://rsj.mobilixnet.dk (updated January 28)
/ Also visit http://www.povrayusers.org


Post a reply to this message

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