Safe form of dStrcmp: checks both strings for NULL before comparing
| 542 | |
| 543 | /// Safe form of dStrcmp: checks both strings for NULL before comparing |
| 544 | bool dStrEqual(const char* str1, const char* str2) |
| 545 | { |
| 546 | if (!str1 || !str2) |
| 547 | return false; |
| 548 | else |
| 549 | return (String::compare(str1, str2) == 0); |
| 550 | } |
| 551 | |
| 552 | /// Check if one string starts with another |
| 553 | bool dStrStartsWith(const char* str1, const char* str2) |
no test coverage detected