MCPcopy Create free account
hub / github.com/davisking/dlib / escape_percent

Function escape_percent

dlib/matlab/mex_wrapper.cpp:385–401  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

383// -------------------------------------------------------
384
385 string escape_percent(const string& str)
386 {
387 string temp;
388 for(auto c : str)
389 {
390 if (c != '%')
391 {
392 temp += c;
393 }
394 else
395 {
396 temp += c;
397 temp += c;
398 }
399 }
400 return temp;
401 }
402
403 string escape_percent(const std::ostringstream& sout)
404 {

Callers 2

call_mex_functionFunction · 0.85
mexFunctionFunction · 0.85

Calls 1

strMethod · 0.45

Tested by

no test coverage detected