reduce need for patching single quotes in symlist data

This commit is contained in:
Basile Burg 2017-12-21 11:27:27 +01:00
parent 58f1d651ff
commit 7ed7d51e27
2 changed files with 11 additions and 1 deletions

View File

@ -195,6 +195,16 @@ private void fillBadVersions()
*/
string patchPascalString(size_t lenLimit = 0)(string value)
{
bool needed;
foreach(i; 0 .. value.length)
if (value[i] == '\'')
{
needed = true;
break;
}
if (!needed)
return value;
Appender!string app;
static if (lenLimit)
const size_t len = value.length > 100 ? 100 : value.length;

@ -1 +1 @@
Subproject commit a69006e93599d4c450d0348c8875d109dcc74757
Subproject commit 1b0df8cb838adfb73889faaea524d6d6a473a5df