mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 14:44:36 +00:00
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:
parent
d669eb6ee7
commit
fcf52fb5e0
9 changed files with 17 additions and 17 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue