MCPcopy Create free account
hub / github.com/SmingHub/Sming / equalsIgnoreCase

Method equalsIgnoreCase

Sming/Wiring/WString.cpp:581–595  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

579}
580
581bool String::equalsIgnoreCase(const char* cstr) const
582{
583 auto len = length();
584 if(len == 0) {
585 return (cstr == nullptr || *cstr == '\0');
586 }
587 if(cstr == nullptr) {
588 return false;
589 }
590 auto buf = cbuffer();
591 if(buf == cstr) {
592 return true;
593 }
594 return strcasecmp(cstr, buf) == 0;
595}
596
597bool String::equalsIgnoreCase(const char* cstr, size_t length) const
598{

Callers 7

onFileFunction · 0.45
handleCommandFunction · 0.45
initFunction · 0.45
executeMethod · 0.45
executeMethod · 0.45
testHttpCommonMethod · 0.45
findIgnoreCaseMethod · 0.45

Calls 2

lengthMethod · 0.95
memicmpFunction · 0.85

Tested by

no test coverage detected