Internals: Add V3UniqueNames consistency assertion (#3692)

This commit is contained in:
Krzysztof Bieganski
2022-10-21 07:05:38 -04:00
committed by GitHub
parent 8b0d71994d
commit 5688d1a935
9 changed files with 110 additions and 100 deletions
+4
View File
@@ -183,6 +183,10 @@ bool VString::startsWith(const string& str, const string& prefix) {
return str.rfind(prefix, 0) == 0; // Faster than .find(_) == 0
}
bool VString::endsWith(const string& str, const string& suffix) {
return str.compare(str.length() - suffix.length(), suffix.length(), suffix) == 0;
}
//######################################################################
// VHashSha256