class Stringify

Defined at line 513 of file ../../third_party/openthread/src/core/common/string.hpp

Provides helper methods to convert from a set of `uint16_t` values (e.g., a non-sequential `enum`) to

string using binary search in a lookup table.

Public Methods

template <uint16_t kLength>
const char * Lookup (uint16_t aKey, const Entry (&)[kLength] aTable, const char * aNotFound)

Looks up a key in a given sorted table array (using binary search) and return the associated

strings with the key.

Parameters

aKey [in] The key to search for within the table.
aTable [in] A reference to an array of `kLength` entries.
aNotFound [in] A C string to return if was not found in the table.

Template Parameters

kLength The array length (number of entries in the array).

Defined at line 551 of file ../../third_party/openthread/src/core/common/string.hpp

void Stringify ()

Defined at line 558 of file ../../third_party/openthread/src/core/common/string.hpp

Records