]> git.donarmstrong.com Git - mothur.git/blobdiff - mothurout.cpp
fixing bugs while testing
[mothur.git] / mothurout.cpp
index 59e4fdcc080fe91e946dbc7d3b2a66d9e1dc02a0..7309c174c83027437e67026869f53161101e11bc 100644 (file)
@@ -1731,6 +1731,23 @@ bool MothurOut::checkReleaseVersion(ifstream& file, string version) {
        }
 }
 /**************************************************************************************************/
+bool MothurOut::isContainingOnlyDigits(string input) {
+       try{
+               
+               //are you a digit in ascii code
+               for (int i = 0;i < input.length(); i++){
+                       if( input[i]>47 && input[i]<58){}
+                       else { return false; }
+               }
+               
+               return true;
+       }
+       catch(exception& e) {
+               errorOut(e, "MothurOut", "isContainingOnlyDigits");             
+               exit(1);
+       }
+}
+/**************************************************************************************************/