Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kornelski/7z.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'CPP/Common/Lang.h')
-rw-r--r--[-rwxr-xr-x]CPP/Common/Lang.h24
1 files changed, 10 insertions, 14 deletions
diff --git a/CPP/Common/Lang.h b/CPP/Common/Lang.h
index 2ce53a0d..2ca2a850 100755..100644
--- a/CPP/Common/Lang.h
+++ b/CPP/Common/Lang.h
@@ -4,24 +4,20 @@
#define __COMMON_LANG_H
#include "MyString.h"
-#include "Types.h"
-
-struct CLangPair
-{
- UInt32 Value;
- UString String;
-};
class CLang
{
- CObjectVector<CLangPair> _langPairs;
+ wchar_t *_text;
+ CRecordVector<UInt32> _ids;
+ CRecordVector<UInt32> _offsets;
+
+ bool OpenFromString(const AString &s);
public:
- bool Open(CFSTR fileName);
- void Clear() { _langPairs.Clear(); }
- int FindItem(UInt32 value) const;
- bool GetMessage(UInt32 value, UString &message) const;
+ CLang(): _text(0) {}
+ ~CLang() { Clear(); };
+ bool Open(CFSTR fileName, const wchar_t *id);
+ void Clear() throw();
+ const wchar_t *Get(UInt32 id) const throw();
};
#endif
-
-