34#include <QRegularExpression>
53 static QString getVersion();
71 static const QString getLexicalOrderedString(
unsigned int num);
72 static void writeLexicalOrderedString(QTextStream *p_out,
unsigned int num);
78 static std::string toUtf8StandardString(
const QString &text);
80 static bool writeToFile(
const QString &text,
const QString &file_name);
81 static bool appendToFile(
const QString &text,
const QString &file_name);
82 static std::size_t extractScanNumberFromMzmlNativeId(
const QString &spectrum_native_id);
84 static QString pointerToString(
const void *
const pointer);
86 static bool almostEqual(
double value1,
double value2,
int decimalPlaces = 10);
88 static double nearestGreater(
double value);
90 static QString chronoTimePointDebugString(
92 std::chrono::system_clock::time_point chrono_time = std::chrono::system_clock::now());
94 static QString chronoIntervalDebugString(
96 std::chrono::system_clock::time_point chrono_start,
97 std::chrono::system_clock::time_point chrono_finish = std::chrono::system_clock::now());
99 static std::vector<double> splitMzStringToDoubleVectorWithSpaces(
const QString &text,
100 std::size_t &error_count);
102 static std::vector<std::size_t> splitSizetStringToSizetVectorWithSpaces(
const QString &text,
103 std::size_t &error_count);
109 static QString booleanToString(
bool value);
115 static QString msDataFormatAsString(
MsDataFormat mz_format);
116 static QString fileReaderTypeAsString(
FileReaderType file_reader_type);
139 static QString toString(
PeptideIon m_ionType);
amino acid modification model
static QRegularExpression anythingButDigitDotDash
static QRegularExpression signedDoubleNumberExponentialRegExp
static QRegularExpression xyMassDataFormatRegExp
static QRegularExpression mzListDataFormatRegExp
Regular expression matching <m/z value><non-numerical*>
static QRegularExpression unsignedDoubleNumberNoExponentialRegExp
static QRegularExpression sizetListDataFormatRegExp
Regular expression matching <size_t><non-numerical*>
static QRegularExpression endOfLineRegExp
Regular expression that tracks the end of line in text files.
ExperimentalSpectrumDataPointType
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
PeptideIon
PeptideIon enum defines all types of ions (Nter or Cter)
double pappso_double
A type definition for doubles.
SpecGlobTool types definition.
This header contains all the type re-definitions and all the global variables definitions used in the...