MCPcopy Create free account
hub / github.com/Rezonality/zep / string_first_not_of

Function string_first_not_of

src/mcommon/string/stringutils.cpp:266–284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

264}
265
266size_t string_first_not_of(const char* text, size_t start, size_t end, const char* delims)
267{
268 for (auto index = start; index < end; index++)
269 {
270 bool found = false;
271 auto pDelim = delims;
272 while (*pDelim != 0)
273 {
274 if (text[index] == *pDelim++)
275 {
276 found = true;
277 break;
278 }
279 }
280 if (!found)
281 return index;
282 }
283 return std::string::npos;
284}
285
286size_t string_first_of(const char* text, size_t start, size_t end, const char* delims)
287{

Callers 1

string_split_eachFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected