summaryrefslogtreecommitdiffstats
path: root/src/io/ftos.h
diff options
context:
space:
mode:
authorKrzysztof Kosi??ski <tweenk.pl@gmail.com>2013-09-19 02:05:00 +0000
committerKrzysztof KosiƄski <tweenk.pl@gmail.com>2013-09-19 02:05:00 +0000
commitf6e99d7d1b76dd7a7933f55ba095bdcb534f81b3 (patch)
treecbee5d1eec2e1afe8c3f8033d528cab4504c3c49 /src/io/ftos.h
parentEncapsulate the shared memory hack for Cairo and GdkPixbuf in a class (diff)
parentAdded gpl notice (diff)
downloadinkscape-f6e99d7d1b76dd7a7933f55ba095bdcb534f81b3.tar.gz
inkscape-f6e99d7d1b76dd7a7933f55ba095bdcb534f81b3.zip
Merge C++ification of the SP tree by Markus Engel
(bzr r12532)
Diffstat (limited to 'src/io/ftos.h')
-rw-r--r--src/io/ftos.h54
1 files changed, 0 insertions, 54 deletions
diff --git a/src/io/ftos.h b/src/io/ftos.h
deleted file mode 100644
index 888def639..000000000
--- a/src/io/ftos.h
+++ /dev/null
@@ -1,54 +0,0 @@
-/////////////////////////////////////////////////////////////////////////
-// ftos.h
-//
-// Copyright (c) 1996 Bryce W. Harrington - bryce@neptune.net
-//
-//-----------------------------------------------------------------------
-// License: This code may be used by anyone for any purpose
-// so long as the copyright notices and this license
-// statement remains attached.
-//-----------------------------------------------------------------------
-// Description of file contents
-// 1993 - Bryce Harrington
-// Created initial ftoa routine
-//
-// October 1996 - Bryce Harrington
-// Created itos from code taken from Kernighan & Ritchie
-// _The C Programming Language_ 2nd edition
-//
-// November 1996 - Bryce Harrington
-// Created new ftoa and ftos
-//
-// July 1999 - Bryce Harrington
-// Ported to Linux for use in WorldForge
-//
-// January 2000 - Karsten Laux klaux@rhrk.uni-kl.de
-// added ultos - convering ulong to string
-//
-/////////////////////////////////////////////////////////////////////////
-#ifndef ftos_h
-#define ftos_h
-
-#include <string>
-
-// ftos routine
-const int FORCE_X10 = (1 << 0);
-const int FORCE_DECIMAL = (1 << 1);
-const int FORCE_EXP_ZERO = (1 << 2);
-const int FORCE_HUNDRED_EXP_ZERO = (1 << 3);
-const int FORCE_EXP_PLUS = (1 << 4);
-const int FORCE_EXP = (1 << 5);
-const int FORCE_PLUS = (1 << 6);
-
-///
-std::string ftos(double val, char mode='g', int sigfig=-1, int precision=-1, int options=0);
-///
-std::string itos(int n);
-///
-std::string ultos(unsigned long n);
-///
-double rround(double x); // use rounding rule -> x to nearest int.
-///
-double rround(double x, int k); // round to the kth place
-
-#endif // ftos_h