We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81c6777 commit 1c1ae21Copy full SHA for 1c1ae21
src/AudioTools/CoreAudio/AudioBasic/StrView.h
@@ -163,7 +163,7 @@ class StrView {
163
164
/// checks if the string equals indicated parameter string
165
virtual bool equals(const char* str) {
166
- if (str == nullptr) return false;
+ if (str == nullptr) return isEmpty();
167
return strcmp(this->chars, str) == 0;
168
}
169
@@ -561,7 +561,8 @@ class StrView {
561
562
563
/// Compares the string ignoring the case
564
- virtual bool equalsIgnoreCase(const char* alt) const {
+ virtual bool equalsIgnoreCase(const char* alt) {
565
+ if (alt == nullptr) return isEmpty();
566
if ((size_t)len != strlen(alt)) {
567
return false;
568
0 commit comments