css-ostringstream.cpp revision 716972a3f658329a2f5fd4be55057289e2b4db58
#include "svg/css-ostringstream.h"
#include "svg/strip-trailing-zeros.h"
#include "prefs-utils.h"
#include <glib/gmessages.h>
#include <glib/gstrfuncs.h>
{
/* These two are probably unnecessary now that we provide our own operator<< for float and
* double. */
/* This one is (currently) needed though, as we currently use ostr.precision as a sort of
variable for storing the desired precision: see our two precision methods and our operator<<
methods for float and double. */
}
static void
{
switch (prec) {
}
}
{
/* Try as integer first. */
{
long const n = long(d);
if (d == n) {
os << n;
return os;
}
}
return os;
}
{
/* Try as integer first. */
{
long const n = long(d);
if (d == n) {
os << n;
return os;
}
}
return os;
}
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :