| 579 | } |
| 580 | |
| 581 | bool 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 | |
| 597 | bool String::equalsIgnoreCase(const char* cstr, size_t length) const |
| 598 | { |
no test coverage detected