Difference between revisions of "User:Free Portal/Sandbox/ko"
< User:Free Portal | Sandbox
Jump to navigation
Jump to search
Free Portal (talk | contribs) |
Free Portal (talk | contribs) m |
||
Line 15: | Line 15: | ||
<lsl>string searchReplace(string input, string old, string new) { | <lsl>string searchReplace(string input, string old, string new) { | ||
return llDumpList2String(llParseString2List(input, [old], []), new); | return llDumpList2String(llParseString2List(input, [old], []), new); | ||
}</lsl> | |||
</div> | |||
</div> | |||
<div id="box"> | |||
== DEBUG == | |||
<div style="padding: 0.5em 0.5em 1.5em"> | |||
디버그 메시지를 출력하는 함수. | |||
<lsl>integer debug = TRUE; | |||
string DEBUG(string msg) { | |||
if (DEBUG) { | |||
llOwnerSay("__" + llGetObjectName() + " :: " + llGetScriptName() + " :: " + msg | |||
}</lsl> | }</lsl> | ||
</div> | </div> | ||
</div> | </div> |
Revision as of 19:21, 9 March 2010
SandBox
사용도 높은 간단한 사용자 정의 함수 모음집
searchReplace
문자열에서 단어를 치환 하여 반환하는 함수. <lsl>string searchReplace(string input, string old, string new) {
return llDumpList2String(llParseString2List(input, [old], []), new);
}</lsl>
DEBUG
디버그 메시지를 출력하는 함수. <lsl>integer debug = TRUE;
string DEBUG(string msg) {
if (DEBUG) { llOwnerSay("__" + llGetObjectName() + " :: " + llGetScriptName() + " :: " + msg
}</lsl>