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

Method equal

Engine/source/core/util/str.cpp:1021–1040  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1019}
1020
1021bool String::equal(const String &str, U32 mode) const
1022{
1023 if( !mode )
1024 return ( *this == str );
1025 else
1026 {
1027 if( _string == str._string )
1028 return true;
1029 else if( _string->isInterned() && str._string->isInterned() )
1030 return false;
1031 else if( length() != str.length() )
1032 return false;
1033 else if( _string->getHashNoCase() != U32_MAX
1034 && str._string->getHashNoCase() != U32_MAX
1035 && _string->getHashNoCase() != str._string->getHashNoCase() )
1036 return false;
1037 else
1038 return ( compare( str.c_str(), length(), mode ) == 0 );
1039 }
1040}
1041
1042//-----------------------------------------------------------------------------
1043

Callers 15

findDynamicFieldMethod · 0.45
isEqualFunction · 0.45
spawnObjectFunction · 0.45
findByPatternMethod · 0.45
_removeMountFromListMethod · 0.45
_normalizeMethod · 0.45
getDecoderMethod · 0.45
equals<>Function · 0.45
operator ==Method · 0.45
operator !=Method · 0.45
MakeRelativePathMethod · 0.45

Calls 6

compareFunction · 0.85
getHashNoCaseMethod · 0.80
lengthFunction · 0.50
isInternedMethod · 0.45
lengthMethod · 0.45
c_strMethod · 0.45

Tested by 1

EACH_STRINGFunction · 0.36