// Written By: Ĵyм Ѡҩℓƒ (Jym Resident)
/*
LICENCE:
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
or you may visit - http://license.idjhost.com/
*/
// DESCRIPTION
// Test script to verify you can use quotes in the different say variations
string test = "This is a \"test\" to see how \"many\" quotes are \"contained\"";
string newString;
integer length;
integer start;
integer end;
list makeList = [];
default {
state_entry() {
do {
length = llStringLength(test);
start = llSubStringIndex(test,"\"");
test = llDeleteSubString(test,0,start);
end = llSubStringIndex(test,"\"");
newString = llGetSubString(test,0,end-1);
test = llDeleteSubString(test,0,end);
if(newString != "") {
// Uncomment below for debug
//llOwnerSay("In Quotes: "+newString);
makeList += newString;
}
} while (start != -1);
llOwnerSay("Words wrapped in quotes: "+llList2CSV(makeList));
}
}
Comments
0 B
|👍
/👎