removed useless _ folders
This commit is contained in:
3
Printf/Printf.sol
Normal file
3
Printf/Printf.sol
Normal file
@@ -0,0 +1,3 @@
|
||||
<Solution name="Printf">
|
||||
<Project name="Printf" path="Printf\Printf.prj" active="true"/>
|
||||
</Solution>
|
||||
53
Printf/Printf/Object/Printf_1.lsl
Normal file
53
Printf/Printf/Object/Printf_1.lsl
Normal file
@@ -0,0 +1,53 @@
|
||||
// :CATEGORY:Printf
|
||||
// :NAME:Printf
|
||||
// :AUTHOR:Vince Bosen
|
||||
// :CREATED:2010-01-10 05:20:56.000
|
||||
// :EDITED:2013-09-18 15:39:00
|
||||
// :ID:658
|
||||
// :NUM:895
|
||||
// :REV:1.0
|
||||
// :WORLD:Second Life
|
||||
// :DESCRIPTION:
|
||||
// Printf
|
||||
// :CODE:
|
||||
//Created by: Vince
|
||||
|
||||
string format(string text, list args)
|
||||
|
||||
{
|
||||
|
||||
integer len=(args!=[]);
|
||||
|
||||
if(len==0)
|
||||
|
||||
{
|
||||
|
||||
return text;
|
||||
|
||||
}
|
||||
|
||||
else{
|
||||
|
||||
string ret=text;
|
||||
|
||||
integer i;
|
||||
|
||||
for(i=0;i<len;i++)
|
||||
|
||||
{
|
||||
|
||||
integer pos=llSubStringIndex(ret,"{"+(string)i+"}");
|
||||
|
||||
if(pos!=-1)
|
||||
|
||||
{
|
||||
|
||||
ret=llDeleteSubString(ret,pos,pos+llStringLength("{"+(string)i+"}")-1);
|
||||
|
||||
ret=llInsertString(ret,pos,llList2String(args,i));
|
||||
|
||||
}
|
||||
|
||||
else
|
||||
|
||||
{
|
||||
6
Printf/Printf/Printf.prj
Normal file
6
Printf/Printf/Printf.prj
Normal file
@@ -0,0 +1,6 @@
|
||||
<Project name="Printf" guid="D8023787-6C00-1014-B904-200204C60A89">
|
||||
<Object name="Object" guid="D8023870-6C00-1014-B904-200204C60A89">
|
||||
<Script name="Printf_1.lsl" guid="D8025308-6C00-1014-B904-200204C60A89">
|
||||
</Script>
|
||||
</Object>
|
||||
</Project>
|
||||
Reference in New Issue
Block a user