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

Method ncompare

lib_acl_cpp/src/stdlib/string.cpp:1070–1081  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1068}
1069
1070int string::ncompare(const char* s, size_t len, bool case_sensitive/* = true */) const
1071{
1072 if (s == NIL) {
1073 return 1;
1074 }
1075
1076 if (case_sensitive) {
1077 return strncmp(STR(vbf_), s, len);
1078 } else {
1079 return acl_strncasecmp(STR(vbf_), s, len);
1080 }
1081}
1082
1083int string::rncompare(const char* s, size_t len, bool case_sensitive/* =true */) const
1084{

Callers 9

operator ==Function · 0.80
pop3_get_bannerMethod · 0.80
pop3_authMethod · 0.80
pop3_uidlMethod · 0.80
pop3_listMethod · 0.80
pop3_retr_oneMethod · 0.80
pop3_quitMethod · 0.80
acl_foreachFunction · 0.80
doLoginMethod · 0.80

Calls 1

acl_strncasecmpFunction · 0.85

Tested by

no test coverage detected