[med-svn] [Git][med-team/libbioparser-dev][upstream] New upstream version 2.1.2

Andreas Tille gitlab at salsa.debian.org
Sun May 3 15:39:14 BST 2020



Andreas Tille pushed to branch upstream at Debian Med / libbioparser-dev


Commits:
5b48657e by Andreas Tille at 2020-05-03T16:17:01+02:00
New upstream version 2.1.2
- - - - -


1 changed file:

- include/bioparser/bioparser.hpp


Changes:

=====================================
include/bioparser/bioparser.hpp
=====================================
@@ -17,7 +17,7 @@
 
 namespace bioparser {
 
-static const std::string version = "v2.1.1";
+static const std::string version = "v2.1.2";
 
 /*!
  * @brief Parser absctract class
@@ -727,6 +727,11 @@ inline bool SamParser<T>::parse(std::vector<std::unique_ptr<T>>& dst,
         quality_length = 0;
 
     auto create_T = [&] () -> void {
+        if (this->storage_[0] == '@') { // header
+            storage_ptr = 0;
+            return;
+        }
+
         this->storage_[storage_ptr] = 0;
         rightStrip(&(this->storage_[0]), storage_ptr);
 
@@ -828,11 +833,6 @@ inline bool SamParser<T>::parse(std::vector<std::unique_ptr<T>>& dst,
         for (; this->buffer_ptr_ < this->buffer_bytes_; ++this->buffer_ptr_) {
             auto c = this->buffer_[this->buffer_ptr_];
             if (c == '\n') {
-                if (this->buffer_[begin_ptr] == '@') {
-                    begin_ptr = this->buffer_ptr_ + 1;
-                    storage_ptr = 0;
-                    continue;
-                }
                 std::memcpy(&this->storage_[storage_ptr],
                     &this->buffer_[begin_ptr],
                     this->buffer_ptr_ - begin_ptr);



View it on GitLab: https://salsa.debian.org/med-team/libbioparser-dev/-/commit/5b48657ef36c25c39c8559c7eca64b64f2de135e

-- 
View it on GitLab: https://salsa.debian.org/med-team/libbioparser-dev/-/commit/5b48657ef36c25c39c8559c7eca64b64f2de135e
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20200503/f90a26c1/attachment-0001.html>


More information about the debian-med-commit mailing list