Extracted method getMatchingPair()

This commit is contained in:
Benoit Blanchon
2014-08-02 16:25:18 +02:00
parent d2fe9ddf49
commit 1bc45f1fd7
2 changed files with 18 additions and 22 deletions

View File

@ -7,7 +7,6 @@
#include "JsonPrintable.h"
#include "EscapedString.h"
#include <string.h> // for strcmp
namespace ArduinoJson
{
@ -43,11 +42,6 @@ namespace ArduinoJson
{
const char* key;
JsonValue value;
bool matches(const char* candidateKey) const
{
return strcmp(key, candidateKey) == 0;
}
};
JsonObjectBase(KeyValuePair* items, int capacity)
@ -60,6 +54,8 @@ namespace ArduinoJson
int capacity, count;
static JsonValue nullValue;
KeyValuePair* getMatchingPair(const char* key) const;
};
}
}