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

Function removeLeadingWhitespace

Source/Falcor/Utils/StringUtils.cpp:118–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118std::string removeLeadingWhitespace(const std::string& str, const char* whitespace)
119{
120 std::string result(str);
121 result.erase(0, result.find_first_not_of(whitespace));
122 return result;
123}
124
125std::string removeTrailingWhitespace(const std::string& str, const char* whitespace)
126{

Callers 2

CPU_TESTFunction · 0.85

Calls 1

eraseMethod · 0.80

Tested by 1

CPU_TESTFunction · 0.68