MCPcopy Create free account
hub / github.com/HaxeFoundation/hxcpp / eq

Method eq

src/String.cpp:1650–1659  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1648#ifdef HX_SMART_STRINGS
1649
1650bool String::eq(const ::String &inRHS) const
1651{
1652 if (length != inRHS.length)
1653 return false;
1654
1655 bool s0IsWide = isUTF16Encoded();
1656 if (s0IsWide != inRHS.isUTF16Encoded() )
1657 return false;
1658 return !memcmp(__s, inRHS.__s, s0IsWide ? 2 * length : length );
1659}
1660
1661
1662int String::compare(const ::String &inRHS) const

Callers

nothing calls this directly

Calls 2

isUTF16EncodedFunction · 0.85
memcmpFunction · 0.50

Tested by

no test coverage detected