|
1 // Common/TextConfig.h |
|
2 |
|
3 #ifndef __COMMON_TEXTCONFIG_H |
|
4 #define __COMMON_TEXTCONFIG_H |
|
5 |
|
6 #include "Common/Vector.h" |
|
7 #include "Common/String.h" |
|
8 |
|
9 struct CTextConfigPair |
|
10 { |
|
11 UString ID; |
|
12 UString String; |
|
13 }; |
|
14 |
|
15 bool GetTextConfig(const AString &text, CObjectVector<CTextConfigPair> &pairs); |
|
16 |
|
17 int FindTextConfigItem(const CObjectVector<CTextConfigPair> &pairs, const UString &id); |
|
18 UString GetTextConfigValue(const CObjectVector<CTextConfigPair> &pairs, const UString &id); |
|
19 |
|
20 #endif |
|
21 |
|
22 |