diff options
| author | Markus Mittendrein <git@maxmitti.tk> | 2019-07-29 21:28:55 +0200 |
|---|---|---|
| committer | Markus Mittendrein <git@maxmitti.tk> | 2019-07-29 22:03:40 +0200 |
| commit | 012cd7a5888913ae5efc0762a019ff1fd5e27551 (patch) | |
| tree | fdd34988b33b8aad6a657ae38307a8513499445c /DTTemplateFunctions.c | |
| parent | e6cca647da0482090d2259a57bd7f8b8a87c1041 (diff) | |
| download | System.c4g-012cd7a5888913ae5efc0762a019ff1fd5e27551.tar.gz System.c4g-012cd7a5888913ae5efc0762a019ff1fd5e27551.zip | |
Use operators .. and ..= instead of Format where appropriate
Diffstat (limited to 'DTTemplateFunctions.c')
| -rw-r--r-- | DTTemplateFunctions.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/DTTemplateFunctions.c b/DTTemplateFunctions.c index 860c9e1..6d8cd7e 100644 --- a/DTTemplateFunctions.c +++ b/DTTemplateFunctions.c @@ -83,7 +83,7 @@ global func Function(arguments, commands) {
if(argument == "")
{
- contentPart = Format("%s%%", contentPart);
+ contentPart ..= "%";
}
else
{
@@ -125,7 +125,7 @@ global func Function(arguments, commands) }
else if(c == 39) // '
{
- contentPart = Format("%s\"", contentPart);
+ contentPart ..= "\"";
}
else
{
@@ -172,9 +172,9 @@ global func f(array function, array args) {
part = EscapeString(part);
}
- command = Format("%s%s", command, part);
+ command ..= part;
}
- else command = Format("%s%s", command, contentPart);
+ else command ..= contentPart;
}
ret = eval(command);
}
@@ -201,9 +201,9 @@ global func DebugFunc(array function, array args) {
part = EscapeString(part);
}
- command = Format("%s%s", command, part);
+ command ..= part;
}
- else command = Format("%s%s", command, contentPart);
+ else command ..= contentPart;
}
Log(command);
}
|
