]> git.donarmstrong.com Git - mothur.git/blobdiff - mothurout.cpp
added count file to get.oturep, pre.cluster, screen.seqs, tree.shared. made remove...
[mothur.git] / mothurout.cpp
index d9df5a078b425b773611d25b2616e3f66a58bddf..c5eb0dca828a47023973f1684986ba05d45bb0fb 100644 (file)
@@ -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);
+       }
+}
+/**************************************************************************************************/