mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-25 16:43:53 +00:00
21 lines
329 B
C++
21 lines
329 B
C++
#pragma once
|
|
|
|
|
|
|
|
class WstringLookup
|
|
{
|
|
private:
|
|
unsigned int numIDs;
|
|
std::unordered_map<std::wstring, unsigned int> str2int;
|
|
std::vector<std::wstring> int2str;
|
|
|
|
public:
|
|
WstringLookup();
|
|
|
|
std::wstring lookup(unsigned int id);
|
|
|
|
unsigned int lookup(std::wstring);
|
|
|
|
void getTable(std::wstring **lookup, unsigned int *len);
|
|
};
|