Utility functions and classes for various purposes.
More...
|
| Atoms |
| Atoms refer to strings which are allocated once and are stored in the atom table for the lifetime of the application.
|
|
| NaN Boxing |
| 64-bit NaN box format to represent various types.
|
|
|
class | UString |
| String class to replace QString (work in progress). More...
|
|
|
int DECONZ_DLLSPEC | deCONZ::appArgumentNumeric (const QString &arg, int defaultValue) |
| Get the value of a commandline argument.
|
|
QString DECONZ_DLLSPEC | deCONZ::appArgumentString (const QString &arg, const QString &defaultValue) |
| Get the value of a commandline argument.
|
|
QString DECONZ_DLLSPEC | deCONZ::jsonStringFromMap (const QVariantMap &map) |
|
QString DECONZ_DLLSPEC | deCONZ::jsonStringFromList (const QVariantList &ls) |
|
QString DECONZ_DLLSPEC | deCONZ::getStorageLocation (StorageLocation location) |
|
bool DECONZ_DLLSPEC | deCONZ::isVirtualMachine () |
|
const char * | U_utf8_codepoint (const char *text, unsigned *codepoint) |
| Convert utf-8 to unicode code point.
|
|
Utility functions and classes for various purposes.
Utility functions and classes.
The module is work in progress and meant to replace all platform specific and Qt based functionality.
◆ appArgumentNumeric()
int deCONZ::appArgumentNumeric |
( |
const QString & |
arg, |
|
|
int |
defaultValue |
|
) |
| |
Get the value of a commandline argument.
- Parameters
-
arg | the commandline argument |
defaultValue | |
- Returns
- number found or default value
◆ appArgumentString()
QString DECONZ_DLLSPEC deCONZ::appArgumentString |
( |
const QString & |
arg, |
|
|
const QString & |
defaultValue |
|
) |
| |
Get the value of a commandline argument.
- Parameters
-
arg | the commandline argument |
defaultValue | |
- Returns
- number found or default value
◆ U_utf8_codepoint()
const char * U_utf8_codepoint |
( |
const char * |
text, |
|
|
unsigned * |
codepoint |
|
) |
| |
Convert utf-8 to unicode code point.
Returns pointer to remainder of text. 'codepoint' is a valid codepoint or set to U_INVALID_UNICODE_CODEPOINT for invalid utf8.