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

Lang.h « Common « CPP - github.com/kornelski/7z.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: acbf8a6b8e24348b9e26aa08218ea423d42db1f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Common/Lang.h

#ifndef __COMMON_LANG_H
#define __COMMON_LANG_H

#include "MyVector.h"
#include "MyString.h"
#include "Types.h"

struct CLangPair
{
  UInt32 Value;
  UString String;
};

class CLang
{
  CObjectVector<CLangPair> _langPairs;
public:
  bool Open(LPCTSTR fileName);
  void Clear() { _langPairs.Clear(); }
  int FindItem(UInt32 value) const;
  bool GetMessage(UInt32 value, UString &message) const;
};

#endif