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

Method prepend

source/core/StarString.cpp:661–665  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

659}
660
661void String::prepend(String const& s) {
662 auto ns = s;
663 ns.append(*this);
664 *this = std::move(ns);
665}
666
667void String::prepend(std::string const& s) {
668 auto ns = String(s);

Callers

nothing calls this directly

Calls 2

StringClass · 0.85
appendMethod · 0.45

Tested by

no test coverage detected