#include "integerAlphabet.h" #include "logFile.h" #include "someUtil.h" #include #include //return -99 if not succeeds. int integerAlphabet::fromChar(const string& s, const int pos) const { if (s.size() <= (pos + stringSize()-1)) { string textToPrint("integerAlphabet::fromChar: Trying to read a character past the end of the string. "); LOG(1,< integerAlphabet::fromString(const string &str) const { vector vec; if (str.size()%stringSize()!=0) { errorMsg::reportError("error in integerAlphabet::fromString. String length should be a multiplication of stringSize"); } for (int i=0;i 0) { countDigits++; wholeNum /=10; } return (countDigits); } string integerAlphabet::fromInt(const int in_id) const{ string res = int2string(in_id); while (res.size() <= stringSize()) { } return res; } // There are no relations here. int integerAlphabet::relations(const int charInSeq, const int charToCheck) const{ if (charInSeq == charToCheck) return 1; return 0; }