mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 11:43:49 +00:00
clear utf16 cache
this stops the unicode global cache from showing in the memleak output
This commit is contained in:
parent
8926d1c32b
commit
d8315267e8
4 changed files with 12 additions and 2 deletions
|
|
@ -289,6 +289,11 @@ UTF8* createUTF8string( const UTF16* unistring)
|
|||
return ret;
|
||||
}
|
||||
|
||||
void UTF16ClearCache()
|
||||
{
|
||||
sgUTF16Cache.clear();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -66,6 +66,8 @@ UTF16* createUTF16string( const UTF8 *unistring);
|
|||
|
||||
UTF8* createUTF8string( const UTF16 *unistring);
|
||||
|
||||
void UTF16ClearCache();
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
/// Functions that convert buffers of unicode code points, into a provided buffer.
|
||||
/// - These functions are useful for working on existing buffers.
|
||||
|
|
@ -138,4 +140,4 @@ const UTF8* getNthCodepoint(const UTF8 *unistring, const U32 n);
|
|||
bool chompUTF8BOM( const char *inString, char **outStringPtr );
|
||||
bool isValidUTF8BOM( U8 bom[4] );
|
||||
|
||||
#endif // _UNICODE_H_
|
||||
#endif // _UNICODE_H_
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue