adding ansi color codes

This commit is contained in:
Kbz-8
2024-01-20 19:22:18 +01:00
parent 12bb54b2fd
commit d9d6bb3a8c
10 changed files with 122 additions and 19 deletions

29
includes/unstd/string.hpp Normal file
View File

@@ -0,0 +1,29 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* string.hpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: maldavid <kbz_8.dev@akel-engine.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/01/20 19:13:26 by maldavid #+# #+# */
/* Updated: 2024/01/20 19:14:55 by maldavid ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef __UNSTD_STRING__
#define __UNSTD_STRING__
#include <sstream>
namespace unstd
{
template <typename T>
std::string toString(T n)
{
std::ostringstream ss;
ss << n;
return ss.str();
}
}
#endif