MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / findFirstNotOf

Method findFirstNotOf

source/core/StarString.cpp:577–590  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

575}
576
577size_t String::findFirstNotOf(String const& pattern, size_t beg) const {
578 auto it = begin();
579 size_t i;
580 for (i = 0; i < beg; ++i)
581 ++it;
582
583 while (it != end()) {
584 if (!pattern.hasCharOrWhitespace(*it))
585 return i;
586 ++it;
587 ++i;
588 }
589 return NPos;
590}
591
592size_t String::findNextBoundary(size_t index, bool backwards) const {
593 starAssert(index <= size());

Callers

nothing calls this directly

Calls 3

beginFunction · 0.85
endFunction · 0.85
hasCharOrWhitespaceMethod · 0.45

Tested by

no test coverage detected