src/bencoding.cpp
const char* BencodedDict::GetString(const char* key, size_t *length) const
{
	const BencEntityMem *pMem = AsBencString(Get(key));
	return (pMem?pMem->GetString(length):NULL);
}
// Returns string matching the given key or returns NULL if the
// key does not exist or the associated value is not a string.
// The returned pointer is not a copy.  Do not deallocate it.
// If length is not NULL then upon return it contains the length of
// the returned string.
Returns string matching the given key or returns NULL if the
key does not exist or the associated value is not a string.
The returned pointer is not a copy.  Do not deallocate it.
If length is not NULL then upon return it contains the length of
the returned string.
Returns string matching the given key or returns NULL if the key does not exist or the associated value is not a string . The returned pointer is not a copy . Do not deallocate it . If length is not NULL then upon return it contains the length of the returned string .
const char* BencodedDict::GetString(const char* key, size_t *length) const
{
	const BencEntityMem *pMem = AsBencString(Get(key));
	return (pMem?pMem->GetString(length):NULL);
}
const char * BencodedDict :: GetString ( const char * key , size_t * length ) const { const BencEntityMem * pMem = AsBencString ( Get ( key ) ) ; return ( pMem ? pMem -> GetString ( length ) : NULL ) ; }
Returns string matching the given key or returns NULL if the
key does not exist or the associated value is not a string.
Returns string matching the given key or returns NULL if the key does not exist or the associated value is not a string .