Fix llParseString* to create LSLStrings. This makes llListFindList work

on lists created by parsing
0.6.1-post-fixes
Melanie Thielker 2008-11-08 15:31:02 +00:00
parent e93828fe00
commit 5c0fd512e8
1 changed files with 19 additions and 19 deletions

View File

@ -4939,14 +4939,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
{
if (cindex > 0)
{
ret.Add(str.Substring(0, cindex));
ret.Add(new LSL_String(str.Substring(0, cindex)));
}
// Cannot use spacers.Contains() because spacers may be either type String or LSLString
for (int j = 0; j < spacers.Length; j++)
{
if (spacers.Data[j].ToString() == cdeli)
{
ret.Add(cdeli);
ret.Add(new LSL_String(cdeli));
break;
}
}
@ -4955,7 +4955,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
} while (dfound);
if (str != "")
{
ret.Add(str);
ret.Add(new LSL_String(str));
}
return ret;
}
@ -7291,14 +7291,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
{
// no markers were found on this pass
// so we're pretty much done
tokens.Add(src.Substring(beginning, srclen - beginning));
tokens.Add(new LSL_String(src.Substring(beginning, srclen - beginning)));
break;
}
// Otherwise we just add the newly delimited token
// and recalculate where the search should continue.
tokens.Add(src.Substring(beginning,offset[best]-beginning));
tokens.Add(new LSL_String(src.Substring(beginning,offset[best]-beginning)));
if (best < seplen)
{
@ -7307,7 +7307,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
else
{
beginning = offset[best] + (spcarray[best - seplen].ToString()).Length;
tokens.Add(spcarray[best - seplen]);
tokens.Add(new LSL_String(spcarray[best - seplen].ToString()));
}
}
@ -7320,7 +7320,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
if (beginning == srclen)
{
if (srclen != 0)
tokens.Add("");
tokens.Add(new LSL_String(""));
}
return tokens;