| 1386 | } |
| 1387 | |
| 1388 | UInt ValueIteratorBase::index() const { |
| 1389 | #ifndef JSON_VALUE_USE_INTERNAL_MAP |
| 1390 | const Value::CZString czstring = (*current_).first; |
| 1391 | if (!czstring.c_str()) |
| 1392 | return czstring.index(); |
| 1393 | return Value::UInt(-1); |
| 1394 | #else |
| 1395 | if (isArray_) |
| 1396 | return Value::UInt(ValueInternalArray::indexOf(iterator_.array_)); |
| 1397 | return Value::UInt(-1); |
| 1398 | #endif |
| 1399 | } |
| 1400 | |
| 1401 | const char* ValueIteratorBase::memberName() const { |
| 1402 | #ifndef JSON_VALUE_USE_INTERNAL_MAP |
no test coverage detected