| 1 | /* |
| 2 | * LegacyClonk |
| 3 | * |
| 4 | * Copyright (c) RedWolf Design |
| 5 | * Copyright (c) 2017-2019, The LegacyClonk Team and contributors |
| 6 | * |
| 7 | * Distributed under the terms of the ISC license; see accompanying file |
| 8 | * "COPYING" for details. |
| 9 | * |
| 10 | * "Clonk" is a registered trademark of Matthes Bender, used with permission. |
| 11 | * See accompanying file "TRADEMARK" for details. |
| 12 | * |
| 13 | * To redistribute this file separately, substitute the full license texts |
| 14 | * for the above references. |
| 15 | */ |
| 16 | |
| 17 | // Loads StringTbl* and replaces $..$-strings by localized versions |
| 18 | |
| 19 | #pragma once |
| 20 | |
| 21 | #include "C4ComponentHost.h" |
| 22 | |
| 23 | class C4LangStringTable : public C4ComponentHost |
| 24 | { |
| 25 | public: |
| 26 | // do replacement in buffer |
| 27 | // if any replacement is done, the buffer will be realloced |
| 28 | void ReplaceStrings(StdStrBuf &rBuf); |
| 29 | void ReplaceStrings(const StdStrBuf &rBuf, StdStrBuf &rTarget, const char *szParentFilePath = nullptr); |
| 30 | }; |
| 31 | |