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

Method equal

Engine/source/core/util/str.cpp:1031–1050  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1029}
1030
1031bool String::equal(const String &str, U32 mode) const
1032{
1033 if( !mode )
1034 return ( *this == str );
1035 else
1036 {
1037 if( _string == str._string )
1038 return true;
1039 else if( _string->isInterned() && str._string->isInterned() )
1040 return false;
1041 else if( length() != str.length() )
1042 return false;
1043 else if( _string->getHashNoCase() != U32_MAX
1044 && str._string->getHashNoCase() != U32_MAX
1045 && _string->getHashNoCase() != str._string->getHashNoCase() )
1046 return false;
1047 else
1048 return ( compare( str.c_str(), length(), mode ) == 0 );
1049 }
1050}
1051
1052//-----------------------------------------------------------------------------
1053

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
MakeRelativePathMethod · 0.45
EACH_STRINGFunction · 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