Talk:LlReplaceSubString

From Second Life Wiki
Revision as of 08:32, 1 February 2023 by Peter Stindberg (talk | contribs) (Created page with "= About time! = It's not rolled out fully yet. You can start using it in your code already now though, using Firestom's conditional compiles: <syntaxhighlight lang="lsl"> #de...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

About time!

It's not rolled out fully yet. You can start using it in your code already now though, using Firestom's conditional compiles:

#define no577942

#ifdef no577942
string llReplaceSubString(string str, string search, string replace, integer count) {
    return llDumpList2String(llParseStringKeepNulls((str = "") + str, [search], []), replace);
}
#endif

Once it's rolled out in your region, simply remove the #define statement.

Peter Stindberg (talk) 08:31, 01 February 2023 (PDT)