3#include <xrpl/json/json_forwards.h>
4#include <xrpl/json/json_value.h>
62 for (Value::ObjectValues::iterator it =
current_; it != other.
current_; ++it)
92 if (czString.
cStr() !=
nullptr)
108 if (czString.
cStr() ==
nullptr)
109 return czString.
index();
117 char const* name = (*current_).first.cStr();
118 return (name !=
nullptr) ? name :
"";
Lightweight wrapper to tag static string.
const iterator for object and array value.
SelfType & operator=(SelfType const &other)
ValueConstIterator SelfType
ValueConstIterator()=default
bool isEqual(SelfType const &other) const
ValueIteratorBase SelfType
Value::ObjectValues::iterator current_
void copy(SelfType const &other)
char const * memberName() const
Return the member name of the referenced Value.
difference_type computeDistance(SelfType const &other) const
UInt index() const
Return the index of the referenced Value. -1 if it is not an ValueType::Array.
Value key() const
Return either the index or the member name of the referenced value as a Value.
Iterator for object and array value.
SelfType & operator=(SelfType const &other)
bool isStaticString() const
char const * cStr() const
JSON (JavaScript Object Notation).