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

Method findLast

source/core/StarString.cpp:517–530  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

515}
516
517size_t String::findLast(Char c, CaseSensitivity cs) const {
518 auto it = begin();
519
520 size_t found = NPos;
521 size_t pos = 0;
522 while (it != end()) {
523 if (charEqual(c, *it, cs))
524 found = pos;
525 ++pos;
526 ++it;
527 }
528
529 return found;
530}
531
532size_t String::findLast(String const& str, CaseSensitivity cs) const {
533 if (str.empty())

Callers 7

tilesetAssetPathFunction · 0.45
defineAssetSourceMethod · 0.45
extensionMethod · 0.45
buildMethod · 0.45
reloadFontsMethod · 0.45
loadFontMethod · 0.45

Calls 5

beginFunction · 0.85
endFunction · 0.85
emptyMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected