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

Method popFront

Sming/Core/Data/CStringArray.cpp:105–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105String CStringArray::popFront()
106{
107 if(length() == 0) {
108 return nullptr;
109 }
110 auto p = c_str();
111 auto len = strlen(p);
112 String s(p, len);
113 remove(0, len + 1);
114 if(stringCount != 0) {
115 --stringCount;
116 }
117 return s;
118}
119
120const char* CStringArray::back() const
121{

Callers 1

executeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected