| 1345 | |
| 1346 | |
| 1347 | string 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 | |
| 1364 | int isCG (const char & a) { |
| 1365 | if ((a == 'C')||(a == 'c')||(a == 'G')||(a == 'g')) |