aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/sha2.c
AgeCommit message (Expand)Author
2022-04-03Exclude formatting on embedded native cryptoJay Berkenbilt
2022-02-08WHITESPACE ONLY -- expand tabs in source codeJay Berkenbilt
2012-12-31Incorporate sha2 code from sphlib 3.0Jay Berkenbilt
5'>25 26 27 28 29
#include <qpdf/QPDF_Real.hh>

#include <qpdf/QUtil.hh>

QPDF_Real::QPDF_Real(std::string const& val) :
    val(val)
{
}

QPDF_Real::QPDF_Real(double value, int decimal_places) :
    val(QUtil::double_to_string(value, decimal_places))
{
}

QPDF_Real::~QPDF_Real()
{
}

std::string
QPDF_Real::unparse()
{
    return this->val;
}

std::string
QPDF_Real::getVal()
{
    return this->val;
}