MCPcopy Create free account
hub / github.com/bwapi/bwapi / trim

Function trim

bwapi/Util/Source/Util/StringUtil.h:54–57  ·  view source on GitHub ↗

Trims left and right side of str, using predicate to check if the character stays (false) or will be trimmed (true) cppcheck-suppress passedByValue

Source from the content-addressed store, hash-verified

52// stays (false) or will be trimmed (true)
53// cppcheck-suppress passedByValue
54inline void trim(std::string& str, std::function<bool(char)> pred) {
55 trim_left(str, pred);
56 trim_right(str, pred);
57}
58
59//
60// Predicate for trim

Callers 2

initializeAIModuleMethod · 0.85
reloadConfigMethod · 0.85

Calls 2

trim_leftFunction · 0.85
trim_rightFunction · 0.85

Tested by

no test coverage detected