updated to the new Pikotools api (new Space struct)
This commit is contained in:
@@ -145,18 +145,10 @@ public:
|
||||
|
||||
|
||||
// lists
|
||||
// current limitation:
|
||||
// we are looking only in 'space.table' so lists with only one item are not found
|
||||
// (SplitSingle(true) was called to the space struct)
|
||||
bool IsList(const wchar_t * key, bool try_default_too = true);
|
||||
bool IsList(const std::wstring & key, bool try_default_too = true) const;
|
||||
bool IsList(const wchar_t * key, size_t lang_id, bool try_default_too = true);
|
||||
bool IsList(const std::wstring & key, size_t lang_id, bool try_default_too = true) const;
|
||||
|
||||
const std::vector<std::wstring> & GetList(const wchar_t * key, bool try_default_too = true);
|
||||
const std::vector<std::wstring> & GetList(const std::wstring & key, bool try_default_too = true) const;
|
||||
const std::vector<std::wstring> & GetList(const wchar_t * key, size_t lang_id, bool try_default_too = true);
|
||||
const std::vector<std::wstring> & GetList(const std::wstring & key, size_t lang_id, bool try_default_too = true) const;
|
||||
bool GetList(const wchar_t * key, std::vector<std::wstring> & list, bool try_default_too = true);
|
||||
bool GetList(const std::wstring & key, std::vector<std::wstring> & list, bool try_default_too = true) const;
|
||||
bool GetList(const wchar_t * key, size_t lang_id, std::vector<std::wstring> & list, bool try_default_too = true);
|
||||
bool GetList(const std::wstring & key, size_t lang_id, std::vector<std::wstring> & list, bool try_default_too = true) const;
|
||||
|
||||
// converting lang_id to an internal index
|
||||
// returns an index from <0, Size()-1> or size_t(-1) if lang_id is incorrect
|
||||
@@ -181,10 +173,9 @@ public:
|
||||
// (SplitSingle(true) was called to the space struct)
|
||||
bool IsListByIndex(const wchar_t * key, size_t index, bool try_default_too = true);
|
||||
bool IsListByIndex(const std::wstring & key, size_t index, bool try_default_too = true) const;
|
||||
const std::vector<std::wstring> & GetListByIndex(const wchar_t * key, size_t index,
|
||||
bool try_default_too = true);
|
||||
const std::vector<std::wstring> & GetListByIndex(const std::wstring & key, size_t index,
|
||||
bool try_default_too = true) const;
|
||||
|
||||
bool GetListByIndex(const wchar_t * key, size_t index, std::vector<std::wstring> & list, bool try_default_too = true);
|
||||
bool GetListByIndex(const std::wstring & key, size_t index, std::vector<std::wstring> & list, bool try_default_too = true) const;
|
||||
|
||||
|
||||
// url substitution characters
|
||||
@@ -227,7 +218,8 @@ private:
|
||||
size_t SubstFindIndex(const std::vector<SubstItem> & vect, wchar_t val);
|
||||
wchar_t SubstFind(const std::vector<SubstItem> & vect, wchar_t val);
|
||||
const std::wstring * GetKeyInLanguage(const std::wstring & key, size_t lang_id) const;
|
||||
const std::vector<std::wstring> * GetListInLanguage(const std::wstring & key, size_t lang_id) const;
|
||||
bool GetListInLanguage(const std::wstring & key, size_t lang_id, std::vector<std::wstring> & list) const;
|
||||
bool IsListInLanguage(const std::wstring & key, size_t lang_id) const;
|
||||
|
||||
|
||||
// locale files
|
||||
@@ -264,7 +256,6 @@ private:
|
||||
std::string file_name;
|
||||
std::wstring key_str;
|
||||
const std::wstring empty; // used when returning a non existing key from loc_tab (or in LangToFileName)
|
||||
const std::vector<std::wstring> empty_list; // the same as above
|
||||
std::string adir1, adir2;
|
||||
std::wstring pattern_value;
|
||||
};
|
||||
|
Reference in New Issue
Block a user