7#include "btllib/cstring.hpp"
9#include <condition_variable>
25std::vector<std::string>
26split(
const std::string& s,
const std::string& delim);
37join(
const std::vector<std::string>& s,
const std::string& delim);
48ltrim(btllib::CString& s);
59rtrim(btllib::CString& s);
70trim(btllib::CString& s);
125sum_phred(
const std::string& qual,
size_t start_pos = 0,
size_t len = 0);
147 Barrier(
const unsigned count)
148 : counter_default(count)
156 std::condition_variable cv;
157 unsigned counter{ 0 };
158 unsigned counter_default;
159 unsigned waiting{ 0 };
bool endswith(std::string s, std::string suffix)
std::string join(const std::vector< std::string > &s, const std::string &delim)
void trim(std::string &s)
double calc_phred_avg(const std::string &qual, size_t start_pos=0, size_t len=0)
std::string get_dirname(const std::string &path)
std::string get_basename(const std::string &path)
std::vector< std::string > split(const std::string &s, const std::string &delim)
void rtrim(std::string &s)
bool startswith(std::string s, std::string prefix)
void ltrim(std::string &s)
double sum_phred(const std::string &qual, size_t start_pos=0, size_t len=0)