MCPcopy Create free account
hub / github.com/Illumina/hap.py / key

Method key

external/jsoncpp/jsoncpp.cpp:1342–1363  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1340
1341
1342Value
1343ValueIteratorBase::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
1366UInt

Callers

nothing calls this directly

Calls 5

c_strMethod · 0.80
isStaticStringMethod · 0.80
indexMethod · 0.80
ValueClass · 0.50
StaticStringClass · 0.50

Tested by

no test coverage detected