OpenMS
OpenMS::StringConversions Namespace Reference

Namespaces

 Detail
 

Functions

template<typename T >
void append (const T &i, String &target)
 
template<typename T >
String toString (const T &i)
 fallback template for general purpose using Boost::Karma; more specializations below More...
 
void appendLowP (float f, String &target)
 
String toStringLowP (float f)
 low precision (3 fractional digits) conversion to string (Karma default) More...
 
void appendLowP (double d, String &target)
 
String toStringLowP (double d)
 low precision (3 fractional digits) conversion to string (Karma default) More...
 
void appendLowP (long double ld, String &target)
 low precision (3 fractional digits) conversion to string (Karma default) More...
 
String toStringLowP (long double ld)
 low precision (3 fractional digits) conversion to string (Karma default) More...
 
void append (float f, String &target)
 high precision (6 fractional digits) conversion to String More...
 
String toString (float f)
 high precision (6 fractional digits) conversion to String More...
 
void append (double d, String &target)
 high precision (15 fractional digits) conversion to String More...
 
String toString (double d)
 high precision (15 fractional digits) conversion to String More...
 
void append (long double ld, String &target)
 high precision (15 fractional digits) conversion to String More...
 
String toString (long double ld)
 high precision (15 fractional digits) conversion to String More...
 
void append (const DataValue &d, bool full_precision, String &target)
 
String toString (const DataValue &d, bool full_precision)
 
String toString (const char c)
 
String toString (const std::string &s)
 
String toString (const char *s)
 
String toString ()
 Other toString functions (different number of arguments) More...
 

Function Documentation

◆ append() [1/5]

void OpenMS::StringConversions::append ( const DataValue d,
bool  full_precision,
String target 
)
inline

References DataValue::toString().

◆ append() [2/5]

void OpenMS::StringConversions::append ( const T &  i,
String target 
)
inline

fallback template for general purpose using Boost::Karma; more specializations below does NOT clear the input string target, so appending is as efficient as possible

Referenced by toString().

◆ append() [3/5]

void OpenMS::StringConversions::append ( double  d,
String target 
)
inline

high precision (15 fractional digits) conversion to String

References OpenMS::StringConversions::Detail::BK_PrecPolicyDoubleFull.

◆ append() [4/5]

void OpenMS::StringConversions::append ( float  f,
String target 
)
inline

high precision (6 fractional digits) conversion to String

References OpenMS::StringConversions::Detail::BK_PrecPolicyFloatFull.

◆ append() [5/5]

void OpenMS::StringConversions::append ( long double  ld,
String target 
)
inline

high precision (15 fractional digits) conversion to String

References OpenMS::StringConversions::Detail::BK_PrecPolicyLongDoubleFull.

◆ appendLowP() [1/3]

void OpenMS::StringConversions::appendLowP ( double  d,
String target 
)
inline

low precision (3 fractional digits) conversion to string (Karma default) does NOT clear the input string target, so appending is as efficient as possible

References OpenMS::StringConversions::Detail::BK_PrecPolicyDoubleShort.

◆ appendLowP() [2/3]

void OpenMS::StringConversions::appendLowP ( float  f,
String target 
)
inline

low precision (3 fractional digits) conversion to string (Karma default) does NOT clear the input string target, so appending is as efficient as possible

References OpenMS::StringConversions::Detail::BK_PrecPolicyFloatShort.

Referenced by toStringLowP().

◆ appendLowP() [3/3]

void OpenMS::StringConversions::appendLowP ( long double  ld,
String target 
)
inline

low precision (3 fractional digits) conversion to string (Karma default)

References OpenMS::StringConversions::Detail::BK_PrecPolicyLongDoubleShort.

◆ toString() [1/9]

String OpenMS::StringConversions::toString ( )
inline

Other toString functions (different number of arguments)

◆ toString() [2/9]

String OpenMS::StringConversions::toString ( const char *  s)
inline

◆ toString() [3/9]

String OpenMS::StringConversions::toString ( const char  c)
inline

References OpenMS::Constants::c.

◆ toString() [4/9]

String OpenMS::StringConversions::toString ( const DataValue d,
bool  full_precision 
)
inline

References DataValue::toString().

◆ toString() [5/9]

String OpenMS::StringConversions::toString ( const std::string &  s)
inline

◆ toString() [6/9]

String OpenMS::StringConversions::toString ( const T &  i)
inline

fallback template for general purpose using Boost::Karma; more specializations below

References append().

◆ toString() [7/9]

String OpenMS::StringConversions::toString ( double  d)
inline

high precision (15 fractional digits) conversion to String

References append().

◆ toString() [8/9]

String OpenMS::StringConversions::toString ( float  f)
inline

high precision (6 fractional digits) conversion to String

References append().

◆ toString() [9/9]

String OpenMS::StringConversions::toString ( long double  ld)
inline

high precision (15 fractional digits) conversion to String

References append().

◆ toStringLowP() [1/3]

String OpenMS::StringConversions::toStringLowP ( double  d)
inline

low precision (3 fractional digits) conversion to string (Karma default)

References appendLowP().

◆ toStringLowP() [2/3]

String OpenMS::StringConversions::toStringLowP ( float  f)
inline

low precision (3 fractional digits) conversion to string (Karma default)

References appendLowP().

◆ toStringLowP() [3/3]

String OpenMS::StringConversions::toStringLowP ( long double  ld)
inline

low precision (3 fractional digits) conversion to string (Karma default)

References appendLowP().