Rename the memory allocating versions to make prev error less likely

The behavior is different enough that these shouldn't be overloaded
with the non-allocating verions. Also makes it more obvious what is
going on to the caller.
This commit is contained in:
Ben Payne 2015-01-23 16:09:01 -05:00
parent d669eb6ee7
commit fcf52fb5e0
9 changed files with 17 additions and 17 deletions

View file

@ -242,7 +242,7 @@ U32 convertUTF16toUTF8DoubleNULL( const UTF16 *unistring, UTF8 *outbuffer, U32
//-----------------------------------------------------------------------------
// Functions that convert buffers of unicode code points
//-----------------------------------------------------------------------------
UTF16* convertUTF8toUTF16( const UTF8* unistring)
UTF16* createUTF16string( const UTF8* unistring)
{
PROFILE_SCOPE(convertUTF8toUTF16_create);
@ -264,7 +264,7 @@ UTF16* convertUTF8toUTF16( const UTF8* unistring)
}
//-----------------------------------------------------------------------------
UTF8* convertUTF16toUTF8( const UTF16* unistring)
UTF8* createUTF8string( const UTF16* unistring)
{
PROFILE_SCOPE(convertUTF16toUTF8_create);

View file

@ -62,9 +62,9 @@
/// calling delete[] on these buffers.
/// - Because they allocate memory, do not use these functions in a tight loop.
/// - These are useful when you need a new long term copy of a string.
UTF16* convertUTF8toUTF16( const UTF8 *unistring);
UTF16* createUTF16string( const UTF8 *unistring);
UTF8* convertUTF16toUTF8( const UTF16 *unistring);
UTF8* createUTF8string( const UTF16 *unistring);
//-----------------------------------------------------------------------------
/// Functions that convert buffers of unicode code points, into a provided buffer.