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

Function pathAppend

src/myFunc.cpp:1347–1362  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1345
1346
1347string pathAppend(const string& p1, const string& p2) {
1348
1349 char sep = '/';
1350 string tmp = p1;
1351 char sep2=sep;
1352#if defined(_WIN32)
1353 sep2 = '\\';
1354#endif
1355 char lastSymb= p1[p1.length( )-1];
1356 if (lastSymb != sep && lastSymb != sep2) { // Need to add a
1357 tmp += sep; // path separator
1358 return(tmp + p2);
1359 }
1360 else
1361 return(p1 + p2);
1362}
1363
1364int isCG (const char & a) {
1365 if ((a == 'C')||(a == 'c')||(a == 'G')||(a == 'g'))

Callers 1

fillCGprofileMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected