#include <string>#include <vector>Go to the source code of this file.
Functions | |
| vector< string > | split (const string &str) |
| vector< string > | split (const string &str, const string sep) |
| vector< string > | split (const string &str, int nf) |
| void | rmspace (string &s) |
| void | erase (string &s, const string &sub) |
| void | replace (string &s, const string &sub, const string &r) |
| void | replaceInnerQuote (string &s) |
| bool | remove_end_mark (string &s, const char m[]=".;", int n=2) |
| bool | startWith (const string &s1, const string &s2) |
| bool | startWithIgnoreCase (const string &s1, const string &s2) |
| string | toupper (const string &s) |
| string | acronym (const string &s) |
| string | firstWord (const string &s) |
| string acronym | ( | const string & | s | ) |
References split().
Referenced by refloc::key(), main(), book::makeKey(), and feature::shortIsGeneSymbol().
| void erase | ( | string & | s, | |
| const string & | sub | |||
| ) |
Referenced by prt::getAC(), ref::process(), and prt::writeAce().
| string firstWord | ( | const string & | s | ) |
Referenced by ref::firstAuthor(), and book::makeKey().
| bool remove_end_mark | ( | string & | s, | |
| const char | m[] = ".;", |
|||
| int | n = 2 | |||
| ) |
Referenced by prt::next(), and ref::next().
| void replace | ( | string & | s, | |
| const string & | sub, | |||
| const string & | r | |||
| ) |
Referenced by refloc::key(), prt::next(), ref::process(), and prt::writeAce().
| void replaceInnerQuote | ( | string & | s | ) |
Referenced by book::parse(), and ref::process().
| void rmspace | ( | string & | s | ) |
remove all space from the string s implementation not working with string derived from str.substr(n)
when s is derived from substr it crashes s = str.substr(3); then abort Do not use this algorithm
| vector<string> split | ( | const string & | str, | |
| int | nf | |||
| ) |
| vector<string> split | ( | const string & | str, | |
| const string | sep | |||
| ) |
| vector<string> split | ( | const string & | str | ) |
separate the line into name and sequence parts first=name, second=sequence string with gaps
| bool startWith | ( | const string & | s1, | |
| const string & | s2 | |||
| ) |
Referenced by book::parse(), ref::process(), and startWithIgnoreCase().
| bool startWithIgnoreCase | ( | const string & | s1, | |
| const string & | s2 | |||
| ) |
| string toupper | ( | const string & | s | ) |
References toupper().
Referenced by Protein::aminoAcidFullName(), bcd2num(), checksum(), countbase(), bioseq::getcode(), is_dchar(), load_mat(), load_seq(), load_seq_fromstr(), feature::makeGeneSymbol(), rcbase(), protein::read(), gbprt::read(), Protein::relativeEntropy(), Protein::relativeEntropyUniform(), kzseq::revcomp(), kzseq::seq2upper(), startWithIgnoreCase(), str2upper(), strToupper(), Protein::threeLetterCode(), toupper(), bioseq::toUpperCase(), upper(), and prt::writeAce().
1.5.6