OpenMS
Loading...
Searching...
No Matches
OpenMS::StringConversions Namespace Reference

Namespaces

namespace  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
 
void appendLowP (float f, String &target)
 
String toStringLowP (float f)
 low precision (3 fractional digits) conversion to string (Karma default)
 
void appendLowP (double d, String &target)
 
String toStringLowP (double d)
 low precision (3 fractional digits) conversion to string (Karma default)
 
void appendLowP (long double ld, String &target)
 low precision (3 fractional digits) conversion to string (Karma default)
 
String toStringLowP (long double ld)
 low precision (3 fractional digits) conversion to string (Karma default)
 
void append (float f, String &target)
 high precision (6 fractional digits) conversion to String
 
String toString (float f)
 high precision (6 fractional digits) conversion to String
 
void append (double d, String &target)
 high precision (15 fractional digits) conversion to String
 
String toString (double d)
 high precision (15 fractional digits) conversion to String
 
void append (long double ld, String &target)
 high precision (15 fractional digits) conversion to String
 
String toString (long double ld)
 high precision (15 fractional digits) conversion to String
 
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)
 

Function Documentation

◆ append() [1/5]

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

References DataValue::toString().

◆ append() [2/5]

template<typename T >
void 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(), toString(), toString(), and toString().

◆ append() [3/5]

void append ( double  d,
String target 
)
inline

high precision (15 fractional digits) conversion to String

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

◆ append() [4/5]

void append ( float  f,
String target 
)
inline

high precision (6 fractional digits) conversion to String

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

◆ append() [5/5]

void 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 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 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(), toStringLowP(), and toStringLowP().

◆ appendLowP() [3/3]

void 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 toString ( )
inline

Other toString functions (different number of arguments)

◆ toString() [2/9]

String toString ( const char *  s)
inline

◆ toString() [3/9]

String toString ( const char  c)
inline

◆ toString() [4/9]

String toString ( const DataValue d,
bool  full_precision 
)
inline

References DataValue::toString().

◆ toString() [5/9]

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

◆ toString() [6/9]

template<typename T >
String toString ( const T &  i)
inline

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

References append().

◆ toString() [7/9]

String toString ( double  d)
inline

high precision (15 fractional digits) conversion to String

References append().

◆ toString() [8/9]

String toString ( float  f)
inline

high precision (6 fractional digits) conversion to String

References append().

◆ toString() [9/9]

String toString ( long double  ld)
inline

high precision (15 fractional digits) conversion to String

References append().

◆ toStringLowP() [1/3]

String toStringLowP ( double  d)
inline

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

References appendLowP().

◆ toStringLowP() [2/3]

String toStringLowP ( float  f)
inline

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

References appendLowP().

◆ toStringLowP() [3/3]

String toStringLowP ( long double  ld)
inline

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

References appendLowP().