File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33#include < BufferStream.h>
44
55#include < sourcepp/parser/Text.h>
6+ #include < sourcepp/string/String.h>
67
78using namespace kvpp ;
89using namespace sourcepp ;
@@ -30,7 +31,7 @@ uint64_t KV1Element::getChildCount() const {
3031uint64_t KV1Element::getChildCount (std::string_view childKey) const {
3132 uint64_t count = 0 ;
3233 for (const KV1Element& element : this ->children ) {
33- if (element.key == childKey) {
34+ if (string::iequals ( element.key , childKey) ) {
3435 ++count;
3536 }
3637 }
@@ -51,7 +52,7 @@ const KV1Element& KV1Element::operator[](std::string_view childKey) const {
5152
5253const KV1Element& KV1Element::operator ()(std::string_view childKey) const {
5354 for (const auto & element : this ->children ) {
54- if (element.key == childKey) {
55+ if (string::iequals ( element.key , childKey) ) {
5556 return element;
5657 }
5758 }
@@ -61,7 +62,7 @@ const KV1Element& KV1Element::operator()(std::string_view childKey) const {
6162const KV1Element& KV1Element::operator ()(std::string_view childKey, unsigned int n) const {
6263 unsigned int count = 0 ;
6364 for (const auto & element : this ->children ) {
64- if (element.key == childKey) {
65+ if (string::iequals ( element.key , childKey) ) {
6566 if (count == n) {
6667 return element;
6768 } else {
You can’t perform that action at this time.
0 commit comments