mirror of
https://github.com/libimobiledevice/libplist
synced 2026-06-08 15:29:34 +00:00
Add GetNodeIdex and GetNodeKey methods.
This commit is contained in:
@@ -177,4 +177,14 @@ void Dictionary::Remove(const std::string& key)
|
||||
_map.erase(key);
|
||||
}
|
||||
|
||||
std::string Dictionary::GetNodeKey(Node* node)
|
||||
{
|
||||
for (iterator it = _map.begin(); it != _map.end(); ++it)
|
||||
{
|
||||
if (it->second == node)
|
||||
return it->first;
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user