| 1340 | |
| 1341 | |
| 1342 | Value |
| 1343 | ValueIteratorBase::key() const |
| 1344 | { |
| 1345 | #ifndef JSON_VALUE_USE_INTERNAL_MAP |
| 1346 | const Value::CZString czstring = (*current_).first; |
| 1347 | if ( czstring.c_str() ) |
| 1348 | { |
| 1349 | if ( czstring.isStaticString() ) |
| 1350 | return Value( StaticString( czstring.c_str() ) ); |
| 1351 | return Value( czstring.c_str() ); |
| 1352 | } |
| 1353 | return Value( czstring.index() ); |
| 1354 | #else |
| 1355 | if ( isArray_ ) |
| 1356 | return Value( ValueInternalArray::indexOf( iterator_.array_ ) ); |
| 1357 | bool isStatic; |
| 1358 | const char *memberName = ValueInternalMap::key( iterator_.map_, isStatic ); |
| 1359 | if ( isStatic ) |
| 1360 | return Value( StaticString( memberName ) ); |
| 1361 | return Value( memberName ); |
| 1362 | #endif |
| 1363 | } |
| 1364 | |
| 1365 | |
| 1366 | UInt |
nothing calls this directly
no test coverage detected