added to Config:
bool Config::HasValue(const wchar_t * name, const wchar_t * value)
This commit is contained in:
parent
a8a9db53be
commit
4b71530f4c
|
@ -481,6 +481,17 @@ bool Config::ListText(const std::wstring & name, std::vector<std::wstring> & lis
|
|||
return space.to_list(name, list);
|
||||
}
|
||||
|
||||
bool Config::HasValue(const wchar_t * name, const wchar_t * value)
|
||||
{
|
||||
return space.has_value(name, value);
|
||||
}
|
||||
|
||||
|
||||
bool Config::HasValue(const std::wstring & name, const std::wstring & value)
|
||||
{
|
||||
return space.has_value(name.c_str(), value.c_str());
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -809,6 +809,9 @@ public:
|
|||
bool ListText(const wchar_t * name, std::vector<std::wstring> & list);
|
||||
bool ListText(const std::wstring & name, std::vector<std::wstring> & list);
|
||||
|
||||
bool HasValue(const wchar_t * name, const wchar_t * value);
|
||||
bool HasValue(const std::wstring & name, const std::wstring & value);
|
||||
|
||||
// for debug
|
||||
//void Print(std::wostream & out);
|
||||
|
||||
|
|
Loading…
Reference in New Issue