From bcdce9633dc351d3bc7f347a165348b8fab87cd9 Mon Sep 17 00:00:00 2001 From: HampusM Date: Tue, 15 Feb 2022 12:33:52 +0100 Subject: refactor: reorganize files & improve classes --- src/utils/general.hpp | 36 ------------------------------------ 1 file changed, 36 deletions(-) delete mode 100644 src/utils/general.hpp (limited to 'src/utils/general.hpp') diff --git a/src/utils/general.hpp b/src/utils/general.hpp deleted file mode 100644 index dbdbdfc..0000000 --- a/src/utils/general.hpp +++ /dev/null @@ -1,36 +0,0 @@ -#pragma once - -#include "memory.hpp" -#include "smart_string.hpp" - -/** - * Stops code execution. - */ -void stop(); - -/** - * Converts a double number to a string. - * - * @param num A double number - * @param width The desired double width - * @param precision The desired double precision - * @returns The double as a string. - */ -UniquePtr doubleToStr(double num, unsigned int width = 3, - unsigned int precision = 2); - -/** - * Converts a integer to a string. - * - * @param num A number - * @returns The number as a string. - */ -UniquePtr intToStr(int num); - -/** - * Converts a unsigned integer to a string. - * - * @param num A number - * @returns The number as a string. - */ -UniquePtr uintToStr(unsigned int num); -- cgit v1.2.3-18-g5258