Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

llSubStringIndex start search paramater

Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
04-14-2004 21:12
It would be really nice if llSubStringIndex had an overloaded form of
CODE

integer llSubStringIndex(string source, string pattern, integer start);

which would be equivilent to
CODE

llSubStringIndex(llGetSubString(source,start,llStringLength(source)),pattern);
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey
Tiger Crossing
The Prim Maker
Join date: 18 Aug 2003
Posts: 1,560
04-15-2004 07:32
It would be really nice if functions could be overloaded... But that's a different issue.

Since they can't be, this would have to be a new function with a different name. As such, I don't see that happening since it IS possible to do with your second line of code. But add it to the list of LSL functions that would be nice to have. :)
_____________________
~ Tiger Crossing
~ (Nonsanity)