MCPcopy Create free account
hub / github.com/acl-dev/acl / hash

Method hash

lib_acl_cpp/src/stdlib/string.cpp:963–969  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

961}
962
963size_t string::hash() const
964{
965 if (empty()) {
966 return 0;
967 }
968 return (size_t) acl_hash_crc32(c_str(), size());
969}
970
971bool string::equal(const string& s, bool case_sensitive /* = true */) const
972{

Callers 3

operator()Method · 0.80
operator()Method · 0.80
operator()Method · 0.80

Calls 4

acl_hash_crc32Function · 0.85
emptyFunction · 0.50
c_strFunction · 0.50
sizeFunction · 0.50

Tested by

no test coverage detected