16 if (
str_equal(key,
"Source of strain:")) one_comment_entry(orginf.
source, index, reader);
17 else if (
str_equal(key,
"Culture collection:")) one_comment_entry(orginf.
cultcoll, index, reader);
18 else if (
str_equal(key,
"Former name:")) one_comment_entry(orginf.
formname, index, reader);
19 else if (
str_equal(key,
"Alternate name:")) one_comment_entry(orginf.
nickname, index, reader);
20 else if (
str_equal(key,
"Common name:")) one_comment_entry(orginf.
commname, index, reader);
21 else if (
str_equal(key,
"Host organism:")) one_comment_entry(orginf.
hostorg, index, reader);
22 else if (
str_equal(key,
"RDP ID:")) one_comment_entry(seqinf.
RDPid, index, reader);
23 else if (
str_equal(key,
"Corresponding GenBank entry:")) one_comment_entry(seqinf.
gbkentry, index, reader);
24 else if (
str_equal(key,
"Sequencing methods:")) one_comment_entry(seqinf.
methods, index, reader);
25 else if (
str_equal(key,
"5' end complete:")) {
28 if (flag[0] ==
'Y') seqinf.
comp5 =
'y';
29 else seqinf.
comp5 =
'n';
32 else if (
str_equal(key,
"3' end complete:")) {
35 if (flag[0] ==
'Y') seqinf.
comp3 =
'y';
36 else seqinf.
comp3 =
'n';
39 else if (
str_equal(key,
"Sequence information ")) ++reader;
40 else if (
str_equal(key,
"Organism information")) ++reader;
bool parse_RDP_comment(RDP_comments &comments, RDP_comment_parser one_comment_entry, const char *key, int index, Reader &reader)
void(* RDP_comment_parser)(char *&datastring, int start_index, Reader &reader)
void scan_token_or_die(char *to, const char *from)
CONSTEXPR_INLINE bool str_equal(const char *s1, const char *s2)