Fix error message for invalid parameter overrides (#4559)

This commit is contained in:
Anthony Donlon
2023-10-15 12:59:36 -04:00
committed by GitHub
parent 4e2c63c8cb
commit 4427f03b08
14 changed files with 182 additions and 72 deletions
+11
View File
@@ -273,6 +273,17 @@ bool VString::endsWith(const string& str, const string& suffix) {
if (str.length() < suffix.length()) return false;
return str.compare(str.length() - suffix.length(), suffix.length(), suffix) == 0;
}
string VString::aOrAn(const char* word) {
switch (word[0]) {
case '\0': return "";
case 'a':
case 'e':
case 'i':
case 'o':
case 'u': return "an";
default: return "a";
}
}
//######################################################################
// VHashSha256