]> git.donarmstrong.com Git - bamtools.git/blobdiff - src/toolkit/bamtools_split.cpp
Minor formatting cleanup
[bamtools.git] / src / toolkit / bamtools_split.cpp
index 62dc1046c9587d86e76e69c0133a5f5e0cffca0c..748127f08b061974b8a132ca0229d33b0fa407f6 100644 (file)
@@ -24,37 +24,37 @@ using namespace BamTools;
 
 namespace BamTools {
   
-    // string constants
-    static const string SPLIT_MAPPED_TOKEN    = ".MAPPED";
-    static const string SPLIT_UNMAPPED_TOKEN  = ".UNMAPPED";
-    static const string SPLIT_PAIRED_TOKEN    = ".PAIRED_END";
-    static const string SPLIT_SINGLE_TOKEN    = ".SINGLE_END";
-    static const string SPLIT_REFERENCE_TOKEN = ".REF_";
+// string constants
+static const string SPLIT_MAPPED_TOKEN    = ".MAPPED";
+static const string SPLIT_UNMAPPED_TOKEN  = ".UNMAPPED";
+static const string SPLIT_PAIRED_TOKEN    = ".PAIRED_END";
+static const string SPLIT_SINGLE_TOKEN    = ".SINGLE_END";
+static const string SPLIT_REFERENCE_TOKEN = ".REF_";
 
-    string GetTimestampString(void) {
-      
-        // get human readable timestamp
-        time_t currentTime;
-        time(&currentTime);
-        stringstream timeStream("");
-        timeStream << ctime(&currentTime);
-        
-        // convert whitespace to '_'
-        string timeString = timeStream.str();
-        size_t found = timeString.find(" ");
-        while (found != string::npos) {
-            timeString.replace(found, 1, "_");
-            found = timeString.find(" ", found+1);
-        }
-        return timeString;
-    }
-    
-    // remove copy of filename without extension 
-    // (so /path/to/file.txt becomes /path/to/file )
-    string RemoveFilenameExtension(const string& filename) {
-        size_t found = filename.rfind(".");
-        return filename.substr(0, found);
+string GetTimestampString(void) {
+
+    // get human readable timestamp
+    time_t currentTime;
+    time(&currentTime);
+    stringstream timeStream("");
+    timeStream << ctime(&currentTime);
+
+    // convert whitespace to '_'
+    string timeString = timeStream.str();
+    size_t found = timeString.find(" ");
+    while (found != string::npos) {
+        timeString.replace(found, 1, "_");
+        found = timeString.find(" ", found+1);
     }
+    return timeString;
+}
+
+// remove copy of filename without extension
+// (so /path/to/file.txt becomes /path/to/file )
+string RemoveFilenameExtension(const string& filename) {
+    size_t found = filename.rfind(".");
+    return filename.substr(0, found);
+}
     
 } // namespace BamTools