deCONZ C++ API v2.6.1
Loading...
Searching...
No Matches
util.h File Reference

Utility functions and classes for various purposes. More...

#include <QString>
#include <QMetaType>
#include "deconz/declspec.h"

Go to the source code of this file.

Namespaces

namespace  deCONZ
 The deCONZ namespace.
 

Macros

#define U_INVALID_UNICODE_CODEPOINT   0x20000000
 

Enumerations

enum  StorageLocation {
  HomeLocation , ApplicationsLocation , ApplicationsDataLocation , DocumentsLocation ,
  ZcldbLocation , ConfigLocation , NodeCacheLocation , RuntimeLocation ,
  DdfLocation , DdfUserLocation
}
 

Functions

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 ()
 
DECONZ_DLLSPEC const char * U_utf8_codepoint (const char *text, unsigned *codepoint)
 Convert utf-8 to unicode code point.
 

Detailed Description

Utility functions and classes for various purposes.

Function Documentation

◆ U_utf8_codepoint()

DECONZ_DLLSPEC 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.