summaryrefslogtreecommitdiff
path: root/src/std/conversion.cpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-03-14 10:24:36 +0100
committerHampusM <hampus@hampusmat.com>2022-03-14 10:24:36 +0100
commita119e6ca70ffab14f0a70908fa3eeb83b41bb5ab (patch)
tree51b72774694f5e1aac0bb17fc1a5e528dbad9b44 /src/std/conversion.cpp
parent6b5754655f78a7f93b756ff902ce9fd80d9dc4ec (diff)
refactor: rename std to common
Diffstat (limited to 'src/std/conversion.cpp')
-rw-r--r--src/std/conversion.cpp33
1 files changed, 0 insertions, 33 deletions
diff --git a/src/std/conversion.cpp b/src/std/conversion.cpp
deleted file mode 100644
index 3d75e8a..0000000
--- a/src/std/conversion.cpp
+++ /dev/null
@@ -1,33 +0,0 @@
-#include "conversion.hpp"
-
-UniquePtr<SmartString> doubleToStr(double num, unsigned int width, unsigned int precision)
-{
- auto str = make_unique<SmartString>(width + precision);
-
- dtostrf(num, static_cast<signed char>(width), static_cast<unsigned char>(precision),
- str->c_str);
-
- return str;
-}
-
-UniquePtr<SmartString> intToStr(int num)
-{
- auto width = static_cast<unsigned int>(log10(num));
-
- auto str = make_unique<SmartString>(width + 1U);
-
- dtostrf(num, static_cast<signed char>(width + 1U), 0U, str->c_str);
-
- return str;
-}
-
-UniquePtr<SmartString> uintToStr(unsigned int num)
-{
- auto width = static_cast<unsigned int>(log10(num));
-
- auto str = make_unique<SmartString>(width + 1U);
-
- dtostrf(num, static_cast<signed char>(width + 1U), 0U, str->c_str);
-
- return str;
-}