34 #include <QRegularExpression>
35 #include <QTextStream>
64 static const QString getLexicalOrderedString(
unsigned int num);
65 static void writeLexicalOrderedString(QTextStream *p_out,
unsigned int num);
72 static std::string toUtf8StandardString(
const QString &text);
74 static bool writeToFile(
const QString &text,
const QString &file_name);
75 static bool appendToFile(
const QString &text,
const QString &file_name);
77 extractScanNumberFromMzmlNativeId(
const QString &spectrum_native_id);
79 static QString pointerToString(
const void *
const pointer);
81 static bool almostEqual(
double value1,
double value2,
int decimalPlaces = 10);
83 static double nearestGreater(
double value);
86 chronoTimePointDebugString(
const QString &msg,
87 std::chrono::system_clock::time_point chrono_time =
88 std::chrono::system_clock::now());
90 static QString chronoIntervalDebugString(
92 std::chrono::system_clock::time_point chrono_start,
93 std::chrono::system_clock::time_point chrono_finish =
94 std::chrono::system_clock::now());
96 static std::vector<double>
97 splitMzStringToDoubleVectorWithSpaces(
const QString &text,
98 std::size_t &error_count);
100 static std::vector<std::size_t>
101 splitSizetStringToSizetVectorWithSpaces(
const QString &text,
102 std::size_t &error_count);
108 static QString booleanToString(
bool value);
114 static QString mzFormatAsString(
MzFormat mz_format);
static QRegularExpression xyMassDataFormatRegExp
static QRegularExpression mzListDataFormatRegExp
Regular expression matching <m/z value><non-numerical*>
static QRegularExpression sizetListDataFormatRegExp
Regular expression matching <size_t><non-numerical*>
static QRegularExpression endOfLineRegExp
Regular expression that tracks the end of line in text files.
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
double pappso_double
A type definition for doubles.
This header contains all the type re-definitions and all the global variables definitions used in the...