* Apply cmickeyb's patch from mantis 2068
* llParseString functions throw exception when passed a list of variables * Thanks!0.6.0-stable
parent
d2344b5626
commit
e4ec9829cd
|
@ -16,7 +16,7 @@ OpenSim Developers
|
||||||
* CW
|
* CW
|
||||||
* Babblefrog
|
* Babblefrog
|
||||||
* Tedd
|
* Tedd
|
||||||
* justincc (IBM)
|
* justincc
|
||||||
* Teravus (w3z)
|
* Teravus (w3z)
|
||||||
* Johan Berntsson (3Di)
|
* Johan Berntsson (3Di)
|
||||||
* Ckrinke (Charles Krinke)
|
* Ckrinke (Charles Krinke)
|
||||||
|
@ -61,6 +61,7 @@ Patches
|
||||||
* Junta Kohime
|
* Junta Kohime
|
||||||
* Homer_Horwitz
|
* Homer_Horwitz
|
||||||
* Zha Ewry
|
* Zha Ewry
|
||||||
|
* Mic Bowman
|
||||||
|
|
||||||
|
|
||||||
LSL Devs
|
LSL Devs
|
||||||
|
|
|
@ -4526,12 +4526,12 @@ namespace OpenSim.Region.ScriptEngine.Common
|
||||||
{
|
{
|
||||||
int index = str.IndexOf(delimiters[i].ToString());
|
int index = str.IndexOf(delimiters[i].ToString());
|
||||||
bool found = index != -1;
|
bool found = index != -1;
|
||||||
if (found && String.Empty != (string)delimiters[i])
|
if (found && String.Empty != delimiters[i].ToString())
|
||||||
{
|
{
|
||||||
if ((cindex > index) || (cindex == -1))
|
if ((cindex > index) || (cindex == -1))
|
||||||
{
|
{
|
||||||
cindex = index;
|
cindex = index;
|
||||||
cdeli = (string)delimiters[i];
|
cdeli = delimiters[i].ToString();
|
||||||
}
|
}
|
||||||
dfound = dfound || found;
|
dfound = dfound || found;
|
||||||
}
|
}
|
||||||
|
@ -4541,9 +4541,14 @@ namespace OpenSim.Region.ScriptEngine.Common
|
||||||
if (cindex > 0)
|
if (cindex > 0)
|
||||||
{
|
{
|
||||||
ret.Add(str.Substring(0, cindex));
|
ret.Add(str.Substring(0, cindex));
|
||||||
if (spacers.Contains(cdeli))
|
// 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(cdeli);
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (cindex == 0 && spacers.Contains(cdeli))
|
if (cindex == 0 && spacers.Contains(cdeli))
|
||||||
|
@ -6786,7 +6791,7 @@ namespace OpenSim.Region.ScriptEngine.Common
|
||||||
if (active[j])
|
if (active[j])
|
||||||
{
|
{
|
||||||
// scan all of the markers
|
// scan all of the markers
|
||||||
if ((offset[j] = src.IndexOf((string)separray[j],beginning)) == -1)
|
if ((offset[j] = src.IndexOf(separray[j].ToString(),beginning)) == -1)
|
||||||
{
|
{
|
||||||
// not present at all
|
// not present at all
|
||||||
active[j] = false;
|
active[j] = false;
|
||||||
|
@ -6814,7 +6819,7 @@ namespace OpenSim.Region.ScriptEngine.Common
|
||||||
if (active[j])
|
if (active[j])
|
||||||
{
|
{
|
||||||
// scan all of the markers
|
// scan all of the markers
|
||||||
if ((offset[j] = src.IndexOf((string)spcarray[j-seplen], beginning)) == -1)
|
if ((offset[j] = src.IndexOf(spcarray[j-seplen].ToString(), beginning)) == -1)
|
||||||
{
|
{
|
||||||
// not present at all
|
// not present at all
|
||||||
active[j] = false;
|
active[j] = false;
|
||||||
|
@ -6849,11 +6854,11 @@ namespace OpenSim.Region.ScriptEngine.Common
|
||||||
|
|
||||||
if (best < seplen)
|
if (best < seplen)
|
||||||
{
|
{
|
||||||
beginning = offset[best] + ((string)separray[best]).Length;
|
beginning = offset[best] + (separray[best].ToString()).Length;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
beginning = offset[best] + ((string)spcarray[best - seplen]).Length;
|
beginning = offset[best] + (spcarray[best - seplen].ToString()).Length;
|
||||||
tokens.Add(spcarray[best - seplen]);
|
tokens.Add(spcarray[best - seplen]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue