MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / padStringToLength

Function padStringToLength

Source/Falcor/Utils/StringUtils.cpp:149–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147}
148
149std::string padStringToLength(const std::string& str, size_t length, char padding)
150{
151 std::string result = str;
152 if (result.length() < length)
153 result.resize(length, padding);
154 return result;
155}
156
157std::string replaceSubstring(const std::string& input, const std::string& src, const std::string& dst)
158{

Callers 2

printToLogMethod · 0.85
optimizeMaterialsMethod · 0.85

Calls 2

lengthMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected