mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-25 20:53:36 +00:00
20 lines
303 B
C++
20 lines
303 B
C++
#pragma once
|
|
|
|
using namespace std;
|
|
|
|
class WstringLookup
|
|
{
|
|
private:
|
|
UINT numIDs;
|
|
std::unordered_map<std::wstring, UINT> str2int;
|
|
vector<std::wstring> int2str;
|
|
|
|
public:
|
|
WstringLookup();
|
|
|
|
std::wstring lookup(UINT id);
|
|
|
|
UINT lookup(std::wstring);
|
|
|
|
VOID getTable(std::wstring **lookup, UINT *len);
|
|
}; |