From 6e45643b28e1270f9060f4c1740aa6aa0b0b0341 Mon Sep 17 00:00:00 2001 From: Ben Payne Date: Tue, 20 Jan 2015 21:29:44 -0500 Subject: [PATCH] Add descriptions --- Engine/source/core/strings/unicode.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Engine/source/core/strings/unicode.h b/Engine/source/core/strings/unicode.h index a1293b8ee..737a8c500 100644 --- a/Engine/source/core/strings/unicode.h +++ b/Engine/source/core/strings/unicode.h @@ -83,12 +83,14 @@ U32 convertUTF8toUTF16N(const UTF8 *unistring, UTF16 *outbuffer, U32 len); U32 convertUTF16toUTF8N( const UTF16 *unistring, UTF8 *outbuffer, U32 len); +/// Safe conversion function for statically sized buffers. template inline U32 convertUTF8toUTF16(const UTF8 *unistring, UTF16 (&outbuffer)[N]) { return convertUTF8toUTF16N(unistring, outbuffer, (U32) N); } +/// Safe conversion function for statically sized buffers. template inline U32 convertUTF16toUTF8(const UTF16 *unistring, UTF8 (&outbuffer)[N]) {