MCPcopy Create free account
hub / github.com/BoevaLab/FREEC / deleteChar

Function deleteChar

src/myFunc.cpp:1800–1811  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1798}
1799
1800void deleteChar(std::string & s, char c, int moreLettersToDelete) {
1801 string newString;
1802 for (unsigned int i = 0; i< s.length(); i++) {
1803 if (s[i]!=c) {
1804 newString+=s[i];
1805 } else {
1806 i+=moreLettersToDelete;
1807 }
1808 }
1809 s=newString;
1810 return;
1811}
1812
1813
1814void deleteChar(std::string & s, char c) {

Callers 1

addInfoFromAPileUpMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected