1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-16 00:42:45 +01:00

Codechange: String parameter encoding for regular strings.

This allows a string and its parameters to be encoded and stored as just one string, instead of juggling with capturing and restoring string parameters.

The advantage of EncodedStrings over raw strings is they use current language and parameter values at the point of decoding.
This commit is contained in:
Peter Nelson
2024-12-07 09:28:56 +00:00
committed by Peter Nelson
parent 4010313180
commit 1f21e9dc74
5 changed files with 114 additions and 7 deletions

View File

@@ -100,6 +100,7 @@ static bool IsSccEncodedCode(char32_t c)
switch (c) {
case SCC_RECORD_SEPARATOR:
case SCC_ENCODED:
case SCC_ENCODED_INTERNAL:
case SCC_ENCODED_NUMERIC:
case SCC_ENCODED_STRING:
return true;