MCPcopy Create free account
hub / github.com/MyGUI/mygui / trim

Function trim

MyGUIEngine/include/MyGUI_StringUtility.h:17–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15{
16
17 inline void trim(std::string& _str, bool _left = true, bool _right = true)
18 {
19 if (_right)
20 _str.erase(_str.find_last_not_of(" \t\r") + 1);
21 if (_left)
22 _str.erase(0, _str.find_first_not_of(" \t\r"));
23 }
24
25 template<typename T>
26 inline std::string toString(T _value)

Callers 3

parseTagMethod · 0.85
checkPairMethod · 0.85
parseComplex<bool>Function · 0.85

Calls 3

find_last_not_ofMethod · 0.80
find_first_not_ofMethod · 0.80
eraseMethod · 0.45

Tested by

no test coverage detected