From 54f3087873fa1083c809939e74caf1ff29efc9d7 Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Wed, 27 Sep 2023 00:10:24 +0200 Subject: Added `::to_string_hex()`. Signed-off-by: Toni Uhlig --- CRT/eastl_compat.hpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'CRT/eastl_compat.hpp') diff --git a/CRT/eastl_compat.hpp b/CRT/eastl_compat.hpp index 442dc03..2459e75 100644 --- a/CRT/eastl_compat.hpp +++ b/CRT/eastl_compat.hpp @@ -12,6 +12,13 @@ eastl::string to_string(unsigned long long int value); eastl::string to_string(float value); eastl::string to_string(double value); +eastl::string to_string_hex(int value, size_t fill_width = 0); +eastl::string to_string_hex(long value, size_t fill_width = 0); +eastl::string to_string_hex(long long value, size_t fill_width = 0); +eastl::string to_string_hex(unsigned int value, size_t fill_width = 0); +eastl::string to_string_hex(unsigned long int value, size_t fill_width = 0); +eastl::string to_string_hex(unsigned long long int value, size_t fill_width = 0); + #ifndef NATIVE eastl::string from_unicode(wchar_t * wstr, unsigned short wlen, unsigned short wmax = 0); #endif -- cgit v1.2.3