MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / trim

Function trim

include/libnpy/npy.hpp:194–204  ·  view source on GitHub ↗

Removes leading and trailing whitespaces */

Source from the content-addressed store, hash-verified

192 Removes leading and trailing whitespaces
193 */
194inline std::string trim(const std::string &str) {
195 const std::string whitespace = " \t";
196 auto begin = str.find_first_not_of(whitespace);
197
198 if (begin == std::string::npos)
199 return "";
200
201 auto end = str.find_last_not_of(whitespace);
202
203 return str.substr(begin, end - begin + 1);
204}
205
206
207inline std::string get_value_from_map(const std::string &mapstr) {

Callers 3

get_value_from_mapFunction · 0.70
parse_dictFunction · 0.70
parse_tupleFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected