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

Method hasChar

source/core/StarString.cpp:396–401  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

394}
395
396bool String::hasChar(Char c) const {
397 for (Char ch : *this)
398 if (ch == c)
399 return true;
400 return false;
401}
402
403bool String::hasCharOrWhitespace(Char c) const {
404 if (empty())

Callers 2

renderReloadMethod · 0.45
scanMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected