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:
committed by
Peter Nelson
parent
4010313180
commit
1f21e9dc74
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user