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

Function flip_slashes

tools/htmlify/to_xml.cpp:1388–1396  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1386// ----------------------------------------------------------------------------------------
1387
1388string flip_slashes (string str)
1389{
1390 for (unsigned long i = 0; i < str.size(); ++i)
1391 {
1392 if (str[i] == '\\')
1393 str[i] = '/';
1394 }
1395 return str;
1396}
1397
1398// ----------------------------------------------------------------------------------------
1399

Callers 1

write_as_xmlFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected