14#include "deconz/atom.h"
15#include "deconz/declspec.h"
17#ifndef USTRING_NO_QSTRING
21typedef unsigned long long US_WordType;
51 bool operator==(
const UString &)
const;
52 bool operator!=(
const UString &rhs)
const {
return !(*
this == rhs); }
54 bool operator==(
const char*)
const;
55 bool operator!=(
const char *rhs)
const {
return !(*
this == rhs); }
61 const char *c_str()
const;
67 unsigned size()
const;
71 static UString number(
int,
int base=10);
72 static UString number(
unsigned int,
int base=10);
73 static UString number(
long,
int base=10);
74 static UString number(
unsigned long,
int base=10);
75 static UString number(
long long,
int base=10);
76 static UString number(
unsigned long long,
int base=10);
77 static UString number(
double,
char f=
'f',
int prec=6);
96 US_WordType d_word = 0;
99#ifndef USTRING_NO_QSTRING
101inline QLatin1String toQLatin1String(
UString str)
103 return QLatin1String(str.
c_str(),
int(str.
size()));
107inline QString toQString(
UString str)
109 return QString::fromUtf8(str.
c_str(),
int(str.
size()));
String class to replace QString (work in progress).
Definition ustring.h:34
unsigned size() const
Returns the byte size of the string.
Definition ustring.cpp:336
const char * c_str() const
Returns the zero terminated C-String.
Definition ustring.cpp:306
A unique index referencing a atom.
Definition atom.h:44
Represents an atom which is uniquely stored in the atom table.
Definition atom.h:32