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

Method utf16

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

Source from the content-addressed store, hash-verified

352 }
353
354 UTF16* utf16() const
355 {
356 if( !mUTF16 )
357 {
358 // Do this atomically to protect interned strings.
359
360 UTF16* utf16 = createUTF16string( mData );
361 if( !dCompareAndSwap( mUTF16,( UTF16* ) NULL, utf16 ) )
362 delete [] utf16;
363 }
364 return mUTF16;
365 }
366
367 U32 getHashCase() const
368 {

Callers

nothing calls this directly

Calls 2

createUTF16stringFunction · 0.85
dCompareAndSwapFunction · 0.50

Tested by

no test coverage detected