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

Method index

external/jsoncpp/jsoncpp.cpp:1366–1379  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1364
1365
1366UInt
1367ValueIteratorBase::index() const
1368{
1369#ifndef JSON_VALUE_USE_INTERNAL_MAP
1370 const Value::CZString czstring = (*current_).first;
1371 if ( !czstring.c_str() )
1372 return czstring.index();
1373 return Value::UInt( -1 );
1374#else
1375 if ( isArray_ )
1376 return Value::UInt( ValueInternalArray::indexOf( iterator_.array_ ) );
1377 return Value::UInt( -1 );
1378#endif
1379}
1380
1381
1382const char *

Callers 2

keyMethod · 0.80
sizeMethod · 0.80

Calls 1

c_strMethod · 0.80

Tested by

no test coverage detected