MCPcopy Create free account
hub / github.com/brainflow-dev/brainflow / remove_substr

Method remove_substr

src/board_controller/plotjuggler_udp_streamer.cpp:163–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161}
162
163std::string PlotJugglerUDPStreamer::remove_substr (std::string str, std::string substr)
164{
165 std::string res = str;
166 size_t pos = str.find (substr);
167 if (pos != std::string::npos)
168 {
169 res.erase (pos, substr.length ());
170 }
171 return res;
172}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected