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

Method reverse

source/core/StarString.cpp:262–271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260}
261
262String String::reverse() const {
263 String ret;
264 ret.reserve(m_string.length());
265 auto i = end();
266 while (i != begin()) {
267 --i;
268 ret.append(*i);
269 }
270 return ret;
271}
272
273String String::rot13() const {
274 String ret;

Callers 2

rsplitMethod · 0.45
rsplitAnyMethod · 0.45

Calls 5

endFunction · 0.85
beginFunction · 0.85
reserveMethod · 0.45
lengthMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected