13 #ifndef _GLIBCXX_CCTYPE
28 : a(0), c(0), g(0), t(0), other(0)
32 switch (tolower(ch)) {
38 default: other++;
break;
51 void zeroTerminate() {
add(0); len--; }
53 static void check_valid(
char ch) {
55 throw_errorf(43,
"Invalid character '%c' in sequence data", ch);
57 static void check_valid(
const char *
s,
int len) {
58 for (
int i = 0; i<len; ++i) {
64 Seq(
const char *id_,
const char *seq_,
int len_) :
70 check_valid(seq, len);
99 if (c) check_valid(c);
111 const_cast<Seq*
>(
this)->zeroTerminate();
116 for (
int i = 0; i<len; ++i)
122 for (
int i = 0; i<len; ++i) {
133 #error seq.h included twice
void throw_errorf(int error_num, const char *error_messagef,...) __ATTR__FORMAT(2) __ATTR__NORETURN
char * ARB_strdup(const char *str)
void replace_id(const char *id_)
void count(BaseCounts &counter) const
const char * get_id() const
TYPE * ARB_alloc(size_t nelem)
Seq(const char *id_, const char *seq_, int len_)
void ARB_realloc(TYPE *&tgt, size_t nelem)
char * strndup(const char *str, int len)
const char * get_seq() const
void set_id(const char *id_)
void out(Writer &write, Format outType) const
GB_write_int const char s