summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Daniel2023-02-02 13:52:59 +0100
committerGravatar Nikias Bassen2023-02-03 00:26:19 +0100
commitc2f396a53745a74dd58de3b55092a77e0e9f639d (patch)
tree414cdd055f6375d0bfb7dcabedb6dbd9121ad5e7 /src
parentcbb43d790d7ba0575369cebdf6f8cb451bd210fd (diff)
downloadlibplist-c2f396a53745a74dd58de3b55092a77e0e9f639d.tar.gz
libplist-c2f396a53745a74dd58de3b55092a77e0e9f639d.tar.bz2
Add lowercase begin/end iterator functions
... for Dictionary and Array
Diffstat (limited to 'src')
-rw-r--r--src/Array.cpp20
-rw-r--r--src/Dictionary.cpp20
2 files changed, 40 insertions, 0 deletions
diff --git a/src/Array.cpp b/src/Array.cpp
index 5a4fd68..2722d14 100644
--- a/src/Array.cpp
+++ b/src/Array.cpp
@@ -93,21 +93,41 @@ Array::iterator Array::Begin()
return _array.begin();
}
+Array::iterator Array::begin()
+{
+ return _array.begin();
+}
+
Array::iterator Array::End()
{
return _array.end();
}
+Array::iterator Array::end()
+{
+ return _array.end();
+}
+
Array::const_iterator Array::Begin() const
{
return _array.begin();
}
+Array::const_iterator Array::begin() const
+{
+ return _array.begin();
+}
+
Array::const_iterator Array::End() const
{
return _array.end();
}
+Array::const_iterator Array::end() const
+{
+ return _array.end();
+}
+
void Array::Append(Node* node)
{
if (node)
diff --git a/src/Dictionary.cpp b/src/Dictionary.cpp
index ea04e81..4094d2c 100644
--- a/src/Dictionary.cpp
+++ b/src/Dictionary.cpp
@@ -99,21 +99,41 @@ Dictionary::iterator Dictionary::Begin()
return _map.begin();
}
+Dictionary::iterator Dictionary::begin()
+{
+ return _map.begin();
+}
+
Dictionary::iterator Dictionary::End()
{
return _map.end();
}
+Dictionary::iterator Dictionary::end()
+{
+ return _map.end();
+}
+
Dictionary::const_iterator Dictionary::Begin() const
{
return _map.begin();
}
+Dictionary::const_iterator Dictionary::begin() const
+{
+ return _map.begin();
+}
+
Dictionary::const_iterator Dictionary::End() const
{
return _map.end();
}
+Dictionary::const_iterator Dictionary::end() const
+{
+ return _map.end();
+}
+
Dictionary::iterator Dictionary::Find(const std::string& key)
{
return _map.find(key);