Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
661
void String::prepend(String const& s) {
662
auto ns = s;
663
ns.append(*this);
664
*this = std::move(ns);
665
}
666
667
void String::prepend(std::string const& s) {
668
auto ns = String(s);
Callers
nothing calls this directly
Calls
2
String
Class · 0.85
append
Method · 0.45
Tested by
no test coverage detected