X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=mothurout.cpp;h=c5eb0dca828a47023973f1684986ba05d45bb0fb;hb=96dbe925073caefaed6e6db85659c144a806aeb1;hp=d9df5a078b425b773611d25b2616e3f66a58bddf;hpb=5b72d1cf3fa48730e5bb70d59cced1e43e1fe424;p=mothur.git diff --git a/mothurout.cpp b/mothurout.cpp index d9df5a0..c5eb0dc 100644 --- a/mothurout.cpp +++ b/mothurout.cpp @@ -2890,6 +2890,28 @@ int MothurOut::removeConfidences(string& tax) { } } /**************************************************************************************************/ +string MothurOut::removeQuotes(string tax) { + try { + + string taxon; + string newTax = ""; + + for (int i = 0; i < tax.length(); i++) { + + if (control_pressed) { return newTax; } + + if ((tax[i] != '\'') && (tax[i] != '\"')) { newTax += tax[i]; } + + } + + return newTax; + } + catch(exception& e) { + errorOut(e, "MothurOut", "removeQuotes"); + exit(1); + } +} +/**************************************************************************************************/