mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 01:45:38 +08:00
refs #561, Compressed JSON format for model
* based on RI DB keys * utility functions
This commit is contained in:
@@ -20,6 +20,13 @@ namespace BlackMisc
|
||||
return BlackMisc::stringToBool(dbBool);
|
||||
}
|
||||
|
||||
const QString &CDatastoreUtility::boolToDbYN(bool v)
|
||||
{
|
||||
static const QString y("Y");
|
||||
static const QString n("N");
|
||||
return v ? y : n;
|
||||
}
|
||||
|
||||
int CDatastoreUtility::extractIntegerKey(const QString &stringWithKey)
|
||||
{
|
||||
QString ks(stringWithKey.trimmed());
|
||||
|
||||
Reference in New Issue
Block a user