Join us in Outworldz at www.outworldz.com:9000 or follow us:

Search dozens of selected web sites for OpenSim and LSL script

New! Script Meta-Search will search thousands of scripts here and at other sites for LSL or Opensim scripts.
Loading

Want to add a script or a project? Upload it and a half million people will see it and your name here this year.

Home   Show All
Category: Contributor: Creator
Useful Subroutines Reverse_String_Order_faster_version  

Reverse_String_Order_faster_version

Reverse_String_Order_faster_version

Category: Useful Subroutines
By : Void SInger
Created: 2010-02-01 Edited: 2010-02-01
Worlds: Second Life

the Zip file

Download all files for Reverse_String_Order_faster_version
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Reverse_String_Order_faster_version_1.lsl
1 string uStringRevF( string vStrSrc ){
2 integer vIntCnt = llStringLength( vStrSrc );
3 @Loop; if(vIntCnt--){
4 vStrSrc += llGetSubString( vStrSrc, vIntCnt, vIntCnt );
5 jump Loop;
6 }
7 return llGetSubString( vStrSrc, llStringLength( vStrSrc ) >> 1, -1 );
8 }
9 /*//-- Anti-License Text --//*/
10 /*// Contributed Freely to the Public Domain without limitation. //*/
11 /*// 2009 (CC0) [ http://creativecommons.org/publicdomain/zero/1.0 ] //*/
12 /*// Void Singer [ https://wiki.secondlife.com/wiki/User:Void_Singer ] //*/
13 /*//--

Back to the Best Free Tools in Second Life and OpenSim.