static void LettersFromSeq(const Seq &s, unsigned Letters[]) { const unsigned uLength = s.Length(); for (unsigned i = 0; i < uLength; ++i) { char c = s.GetChar(i); unsigned uLetter = CharToLetter(c); if (uLetter < 20) Letters[i] = uLetter; else Letters[i] = AX_X; } }
static void RowFromSeq(const Seq &s, SCORE *Row[]) { const unsigned uLength = s.Length(); for (unsigned i = 0; i < uLength; ++i) { char c = s.GetChar(i); unsigned uLetter = CharToLetter(c); if (uLetter < 20) Row[i] = VTML_SP[uLetter]; else Row[i] = VTML_SP[AX_X]; } }
unsigned Seq::GetLetter(unsigned uIndex) const { assert(uIndex < Length()); char c = operator[](uIndex); return CharToLetter(c); }