mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-11-30 22:03:00 -08:00
Move FileKey::isHex() to Tools.
This commit is contained in:
1 parent
ce0007acd2
commit
6eebd95de1
4 files changed
+14
-13
No files matched your search
@@ -103,4 +103,15 @@ QString imageReaderFilter()
|
||||
return formatsStringList.join(" ");
|
||||
}
|
||||
|
||||
bool isHex(const QByteArray& ba)
|
||||
{
|
||||
Q_FOREACH (char c, ba) {
|
||||
if ( !( (c >= '0' && c <= '9') || (c >= 'a' && c <= 'f') || (c >= 'A' && c <= 'F') ) ) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
} // namespace Tools
|
||||
Reference in new issue
Block a user