OpenMS
|
Functions | |
static String | number (double d, UInt n) |
static QString | toQString (const String &this_s) |
static Int32 | toInt32 (const String &this_s) |
static Int64 | toInt64 (const String &this_s) |
static float | toFloat (const String &this_s) |
static double | toDouble (const String &this_s) |
template<typename IteratorT > | |
static bool | extractDouble (IteratorT &begin, const IteratorT &end, double &target) |
static String | numberLength (double d, UInt n) |
Functions. More... | |
static String & | fillLeft (String &this_s, char c, UInt size) |
static String & | fillRight (String &this_s, char c, UInt size) |
static bool | hasPrefix (const String &this_s, const String &string) |
static bool | hasSuffix (const String &this_s, const String &string) |
static bool | hasSubstring (const String &this_s, const String &string) |
static bool | has (const String &this_s, Byte byte) |
static String | prefix (const String &this_s, size_t length) |
static String | suffix (const String &this_s, size_t length) |
static String | prefix (const String &this_s, Int length) |
static String | suffix (const String &this_s, Int length) |
static String | prefix (const String &this_s, char delim) |
static String | suffix (const String &this_s, char delim) |
static String | substr (const String &this_s, size_t pos, size_t n) |
static String | chop (const String &this_s, Size n) |
static String & | trim (String &this_s) |
static bool | isQuoted (const String &this_s, char q) |
static String & | quote (String &this_s, char q, String::QuotingMethod method) |
static String & | unquote (String &this_s, char q, String::QuotingMethod method) |
static String & | simplify (String &this_s) |
static String | random (UInt length) |
static String & | reverse (String &this_s) |
static bool | split (const String &this_s, const char splitter, std::vector< String > &substrings, bool quote_protect) |
static bool | split (const String &this_s, const String &splitter, std::vector< String > &substrings) |
static bool | split_quoted (const String &this_s, const String &splitter, std::vector< String > &substrings, char q, String::QuotingMethod method) |
static String & | toUpper (String &this_s) |
static String & | firstToUpper (String &this_s) |
static String & | toLower (String &this_s) |
static String & | substitute (String &this_s, char from, char to) |
static String & | substitute (String &this_s, const String &from, const String &to) |
static String & | remove (String &this_s, char what) |
static String & | ensureLastChar (String &this_s, char end) |
const char * | skipWhitespace (const char *p, const char *p_end) |
Get the first non-whitespace character (anything but , \t, \r, ' ') in the string pointed to by p (where p_end is past the end of the string). More... | |
int | skipWhitespace (const std::string_view &data) |
Get the number of whitespace characters ( , \t, \r, ' ') in the prefix of data . More... | |
const char * | skipNonWhitespace (const char *p, const char *p_end) |
Get the first whitespace character ( , \t, \r, ' ') in the string pointed to by p (where p_end is past the end of the string). More... | |
int | skipNonWhitespace (const std::string_view &data) |
return the number of non-whitespace characters (anything but , \t, \r, ' ') in the prefix of data More... | |
static String & | removeWhitespaces (String &this_s) |
References String::hasSuffix().
|
static |
References StringUtilsHelper::extractDouble().
References OpenMS::Constants::c.
References OpenMS::Constants::c.
|
inlinestatic |
Referenced by TOPPASBase::~TOPPASBase().
|
inlinestatic |
Referenced by MascotGenericFile::getNextSpectrum_(), and ProductModel< 2 >::updateMembers_().
|
inlinestatic |
|
inlinestatic |
Referenced by unquote().
Referenced by MetaDataBrowser::add().
Functions.
References OpenMS::writtenDigits().
References String::substr().
References String::substr().
References String::substr().
Referenced by DecoyHelper::countDecoys().
|
inlinestatic |
References String::DOUBLE, String::ESCAPE, and String::substitute().
Referenced by TOPPFLASHDeconv::main_().
References OpenMS::Constants::c, and skipNonWhitespace().
const char* OpenMS::StringUtils::skipNonWhitespace | ( | const char * | p, |
const char * | p_end | ||
) |
Get the first whitespace character (
, \t, \r, ' ') in the string pointed to by p
(where p_end
is past the end of the string).
If only non-whitespaces are contained, then p_end
is returned.
Referenced by removeWhitespaces(), and skipNonWhitespace().
|
inline |
return the number of non-whitespace characters (anything but
, \t, \r, ' ') in the prefix of data
References skipNonWhitespace().
const char* OpenMS::StringUtils::skipWhitespace | ( | const char * | p, |
const char * | p_end | ||
) |
Get the first non-whitespace character (anything but
, \t, \r, ' ') in the string pointed to by p
(where p_end
is past the end of the string).
If only whitespaces are contained, then p_end
is returned.
Referenced by skipWhitespace().
|
inline |
Get the number of whitespace characters (
, \t, \r, ' ') in the prefix of data
.
References skipWhitespace().
|
inlinestatic |
References String::substr().
|
inlinestatic |
References String::ESCAPE, String::NONE, and String::substr().
Referenced by TOPPASBase::~TOPPASBase().
|
inlinestatic |
References String::concatenate(), and String::split().
|
inlinestatic |
References String::substr().
References String::substr().
References String::substr().
Referenced by DecoyHelper::countDecoys().
|
static |
References StringUtilsHelper::toDouble().
Referenced by MascotGenericFile::getNextSpectrum_(), MsInspectFile::load(), SpecArrayFile::load(), MS2File::load(), DTA2DFile::load(), and DTAFile::load().
|
static |
References StringUtilsHelper::toFloat().
Referenced by MS2File::load(), and DTA2DFile::load().
References StringUtilsHelper::toInt32().
References StringUtilsHelper::toInt64().
|
static |
Referenced by TOPPViewBase::addDataFile(), TOPPViewBase::fileChanged_(), TOPPViewBase::finishTOPPToolExecution(), TOPPASBase::loadFiles(), TOPPViewBase::loadFiles(), main(), TOPPASBase::openExampleDialog(), TOPPASBase::refreshParameters(), TOPPViewBase::runTOPPTool_(), TOPPASBase::saveCurrentPipelineAs(), TOPPASBase::savePipeline(), QApplicationTOPP::showAboutDialog(), TOPPASBase::TOPPASBase(), and INIFileEditorWindow::updateWindowTitle().
Referenced by MascotGenericFile::getNextSpectrum_().
|
inlinestatic |
References String::DOUBLE, String::ESCAPE, isQuoted(), String::substitute(), and String::substr().