From 1500e62e540e2077e44c89f473edee2e95419408 Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Mon, 18 Aug 2014 21:05:04 +0200 Subject: [PATCH] [DEV] add string convertion that is missing --- etk/stdTools.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/etk/stdTools.cpp b/etk/stdTools.cpp index 6e77998..1ae7ce6 100644 --- a/etk/stdTools.cpp +++ b/etk/stdTools.cpp @@ -240,6 +240,13 @@ template<> std::string etk::to_string(const std::u32string& _inp } return out; } +template<> std::string etk::to_string(const char32_t& _input) { + std::string out; + char output[10]; + u32char::convertUtf8(_input, output); + out += output; + return out; +} template<> std::string etk::to_string(const std::string& _val) { return _val;