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

Method padRight

source/core/StarString.cpp:791–799  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

789}
790
791String String::padRight(size_t size, String const& filler) const {
792 if (!filler.length())
793 return *this;
794 String rs = *this;
795 while (rs.length() < size) {
796 rs.append(filler);
797 }
798 return rs;
799}
800
801String& String::operator=(String const& s) {
802 m_string = s.m_string;

Callers

nothing calls this directly

Calls 2

lengthMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected