MCPcopy Create free account
hub / github.com/GarageGames/Torque2D / dStrncmp

Function dStrncmp

engine/source/string/unicode.cc:564–576  ·  view source on GitHub ↗

-----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

562
563//-----------------------------------------------------------------------------
564const U32 dStrncmp(const UTF16* unistring1, const UTF16* unistring2, U32 len)
565{
566 UTF16 c1, c2;
567 for(U32 i = 0; i<len; i++)
568 {
569 c1 = *unistring1++;
570 c2 = *unistring2++;
571 if(c1 < c2) return -1;
572 if(c1 > c2) return 1;
573 if(!c1) return 0;
574 }
575 return 0;
576}
577
578//-----------------------------------------------------------------------------
579const U32 dStrncmp(const UTF32* unistring1, const UTF32* unistring2, U32 len)

Callers 12

lookupnMethod · 0.70
initializeGameFunction · 0.50
processMethod · 0.50
getModPathOfMethod · 0.50
readWAVMethod · 0.50
enableMarkerMethod · 0.50
processLineBufferMethod · 0.50
onWakeMethod · 0.50
allocFontMethod · 0.50
allocBitmapMethod · 0.50
loadBitmapMethod · 0.50
TESTFunction · 0.50

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.40