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

Method compare

lib_acl_cpp/src/stdlib/string.cpp:1013–1023  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1011}
1012
1013int string::compare(const string& s) const
1014{
1015 size_t n = LEN(vbf_) > LEN(s.vbf_) ? LEN(s.vbf_) : LEN(vbf_);
1016 int ret;
1017
1018 ret = memcmp(STR(vbf_), STR(s.vbf_), n);
1019 if (ret != 0) {
1020 return ret;
1021 }
1022 return (int) (LEN(vbf_) - LEN(s.vbf_));
1023}
1024
1025int string::compare(const string* s) const
1026{

Callers 9

setMethod · 0.80
set_dataMethod · 0.80
get_beginMethod · 0.80
get_dataMethod · 0.80
delMethod · 0.80
sendHeaderMethod · 0.80
addjobMethod · 0.80
mail_bodyMethod · 0.80
OnCloseMethod · 0.80

Calls 2

compareFunction · 0.85
acl_strcasecmpFunction · 0.85

Tested by

no test coverage detected