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

Method rncompare

lib_acl_cpp/src/stdlib/string.cpp:1083–1094  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1081}
1082
1083int string::rncompare(const char* s, size_t len, bool case_sensitive/* =true */) const
1084{
1085 if (s == NIL) {
1086 return 1;
1087 }
1088
1089 if (case_sensitive) {
1090 return acl_strrncmp(STR(vbf_), s, len);
1091 } else {
1092 return acl_strrncasecmp(STR(vbf_), s, len);
1093 }
1094}
1095
1096bool string::end_with(const char* s, bool case_sensitive /* = true */) const
1097{

Callers 3

get_filepathMethod · 0.80
getContentTypeMethod · 0.80
check_userMethod · 0.80

Calls 2

acl_strrncmpFunction · 0.85
acl_strrncasecmpFunction · 0.85

Tested by

no test coverage detected