MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / trim

Function trim

TactilityCore/Source/StringUtils.cpp:125–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123}
124
125std::string trim(const std::string& input, const std::string& characters) {
126 auto index = input.find_first_not_of(characters);
127 if (index == std::string::npos) {
128 return "";
129 } else {
130 auto end_index = input.find_last_not_of(characters);
131 return input.substr(index, end_index - index + 1);
132 }
133}
134
135} // namespace

Callers 3

parseContentDispositionFunction · 0.85
handleFsRenameMethod · 0.85
loadPropertiesFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected