Apply Fix on XCH.CHE Conditions Parser String Maker ...
This commit is contained in:
@@ -980,6 +980,33 @@ struct XCHCHEStartegyConditionsParser
|
|||||||
"||" + "\n" +
|
"||" + "\n" +
|
||||||
"//";
|
"//";
|
||||||
|
|
||||||
|
//
|
||||||
|
string query = "&&";
|
||||||
|
int andIndexes[];
|
||||||
|
int andIndexesCount = FindIndexes(
|
||||||
|
query,
|
||||||
|
result,
|
||||||
|
andIndexes //
|
||||||
|
);
|
||||||
|
if (IsValidSize(andIndexesCount)) {
|
||||||
|
//
|
||||||
|
int lastAndIndex = andIndexes[ArraySize(andIndexes) - 1];
|
||||||
|
|
||||||
|
//
|
||||||
|
string beforeStr = StringSubstr(
|
||||||
|
result,
|
||||||
|
0,
|
||||||
|
lastAndIndex //
|
||||||
|
);
|
||||||
|
string afterStr = StringSubstr(
|
||||||
|
result,
|
||||||
|
lastAndIndex + StringLen(query)
|
||||||
|
);
|
||||||
|
|
||||||
|
//
|
||||||
|
result = beforeStr + afterStr;
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user