MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / utf16

Method utf16

Engine/source/core/util/str.cpp:343–354  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

341 }
342
343 UTF16* utf16() const
344 {
345 if( !mUTF16 )
346 {
347 // Do this atomically to protect interned strings.
348
349 UTF16* utf16 = createUTF16string( mData );
350 if( !dCompareAndSwap( mUTF16,( UTF16* ) NULL, utf16 ) )
351 delete [] utf16;
352 }
353 return mUTF16;
354 }
355
356 U32 getHashCase() const
357 {

Callers

nothing calls this directly

Calls 2

createUTF16stringFunction · 0.85
dCompareAndSwapFunction · 0.50

Tested by

no test coverage detected