MCPcopy Create free account
hub / github.com/creatale/node-dv / del_space

Function del_space

deps/opencv/modules/core/src/cmdparser.cpp:84–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84string del_space(string name)
85{
86 while ((name.find_first_of(' ') == 0) && (name.length() > 0))
87 name.erase(0, 1);
88
89 while ((name.find_last_of(' ') == (name.length() - 1)) && (name.length() > 0))
90 name.erase(name.end() - 1, name.end());
91
92 return name;
93}
94
95}//namespace
96

Callers 6

CommandLineParserMethod · 0.85
hasMethod · 0.85
getStringMethod · 0.85
printParamsMethod · 0.85
get<bool>Method · 0.85
string>Method · 0.85

Calls 3

eraseMethod · 0.80
lengthMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected