MCPcopy Create free account
hub / github.com/SmingHub/Sming / getValue

Method getValue

Sming/Core/Data/CStringArray.cpp:69–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69const char* CStringArray::getValue(unsigned index) const
70{
71 if(index >= count()) {
72 return nullptr;
73 }
74
75 for(auto it = begin(); it != end(); ++it) {
76 if(it.index() == index) {
77 return *it;
78 }
79 }
80
81 return nullptr;
82}
83
84bool CStringArray::pushFront(const char* str)
85{

Callers

nothing calls this directly

Calls 1

indexMethod · 0.80

Tested by

no test coverage detected