Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages
Static Public Member Functions | List of all members
StringUtils Class Reference

#include <OpenMS/DATASTRUCTURES/StringUtils.h>

Static Public Member Functions

static String numberLength (double d, UInt n)
 Functions. More...
 
static String number (double d, UInt n)
 
static StringfillLeft (String &this_s, char c, UInt size)
 
static StringfillRight (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 Stringtrim (String &this_s)
 
static Stringquote (String &this_s, char q, String::QuotingMethod method)
 
static Stringunquote (String &this_s, char q, String::QuotingMethod method)
 
static Stringsimplify (String &this_s)
 
static String random (UInt length)
 
static Stringreverse (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 QString toQString (const String &this_s)
 
static Int toInt (const String &this_s)
 
static float toFloat (const String &this_s)
 
static double toDouble (const String &this_s)
 
static StringtoUpper (String &this_s)
 
static StringfirstToUpper (String &this_s)
 
static StringtoLower (String &this_s)
 
static Stringsubstitute (String &this_s, char from, char to)
 
static Stringsubstitute (String &this_s, const String &from, const String &to)
 
static Stringremove (String &this_s, char what)
 
static StringensureLastChar (String &this_s, char end)
 
static StringremoveWhitespaces (String &this_s)
 

Member Function Documentation

static String chop ( const String this_s,
Size  n 
)
inlinestatic
static String& ensureLastChar ( String this_s,
char  end 
)
inlinestatic

References String::hasSuffix().

static String& fillLeft ( String this_s,
char  c,
UInt  size 
)
inlinestatic

References OpenMS::Constants::c.

static String& fillRight ( String this_s,
char  c,
UInt  size 
)
inlinestatic

References OpenMS::Constants::c.

static String& firstToUpper ( String this_s)
inlinestatic
static bool has ( const String this_s,
Byte  byte 
)
inlinestatic
static bool hasPrefix ( const String this_s,
const String string 
)
inlinestatic
static bool hasSubstring ( const String this_s,
const String string 
)
inlinestatic
static bool hasSuffix ( const String this_s,
const String string 
)
inlinestatic
static String number ( double  d,
UInt  n 
)
inlinestatic
static String numberLength ( double  d,
UInt  n 
)
inlinestatic

Functions.

References OpenMS::writtenDigits().

static String prefix ( const String this_s,
size_t  length 
)
inlinestatic

References String::substr().

static String prefix ( const String this_s,
Int  length 
)
inlinestatic

References String::substr().

static String prefix ( const String this_s,
char  delim 
)
inlinestatic

References String::substr().

static String& quote ( String this_s,
char  q,
String::QuotingMethod  method 
)
inlinestatic
static String random ( UInt  length)
inlinestatic
static String& remove ( String this_s,
char  what 
)
inlinestatic
static String& removeWhitespaces ( String this_s)
inlinestatic

References OpenMS::Constants::c.

static String& reverse ( String this_s)
inlinestatic
static String& simplify ( String this_s)
inlinestatic
static bool split ( const String this_s,
const char  splitter,
std::vector< String > &  substrings,
bool  quote_protect 
)
inlinestatic
static bool split ( const String this_s,
const String splitter,
std::vector< String > &  substrings 
)
inlinestatic

References String::substr().

static bool split_quoted ( const String this_s,
const String splitter,
std::vector< String > &  substrings,
char  q,
String::QuotingMethod  method 
)
inlinestatic
static String& substitute ( String this_s,
char  from,
char  to 
)
inlinestatic
static String& substitute ( String this_s,
const String from,
const String to 
)
inlinestatic
static String substr ( const String this_s,
size_t  pos,
size_t  n 
)
inlinestatic
static String suffix ( const String this_s,
size_t  length 
)
inlinestatic

References String::substr().

static String suffix ( const String this_s,
Int  length 
)
inlinestatic

References String::substr().

static String suffix ( const String this_s,
char  delim 
)
inlinestatic

References String::substr().

static double toDouble ( const String this_s)
inlinestatic
static float toFloat ( const String this_s)
inlinestatic
static Int toInt ( const String this_s)
inlinestatic
static String& toLower ( String this_s)
inlinestatic
static QString toQString ( const String this_s)
inlinestatic
static String& toUpper ( String this_s)
inlinestatic
static String& trim ( String this_s)
inlinestatic
static String& unquote ( String this_s,
char  q,
String::QuotingMethod  method 
)
inlinestatic

OpenMS / TOPP release 2.0.0 Documentation generated on Fri May 29 2015 17:20:44 using doxygen 1.8.9.1