ionFinder/src/peptide.cpp
std::string PeptideNamespace::Ion::makeChargeLable() const
{
	if(charge > 0)
		return std::to_string(charge) + "+";
	else if(charge < 0)
		return std::to_string(charge) + "-";
	else if(charge == 1)
		return " +";
	else return std::to_string(charge);
}
/**
 Get charge label based off sign of Ion::charge.
 */
Get charge label based off sign of Ion::charge.
Get charge label based off sign of Ion :: charge .
std::string PeptideNamespace::Ion::makeChargeLable() const
{
	if(charge > 0)
		return std::to_string(charge) + "+";
	else if(charge < 0)
		return std::to_string(charge) + "-";
	else if(charge == 1)
		return " +";
	else return std::to_string(charge);
}
std :: string PeptideNamespace :: Ion :: makeChargeLable ( ) const { if ( charge > 0 ) return std :: to_string ( charge ) + " " ; else if ( charge < 0 ) return std :: to_string ( charge ) + " " ; else if ( charge == 1 ) return " " ; else return std :: to_string ( charge ) ; }
Get charge label based off sign of Ion::charge.
Get charge label based off sign of Ion :: charge .