13 #include <boost/functional/hash.hpp>
14 #include <boost/serialization/split_free.hpp>
95 template <
typename QStringType,
typename QCoreApp>
102 template <
typename QStringType>
105 return fromUtf16(qstr.utf16(),qstr.length());
118 inline void setFromUtf8(
const unsigned char* utf8,
int len = -1);
127 inline void setFromUtf16(
const unsigned short* utf16,
int len = -1);
131 inline void setFromUtf32(
const unsigned int* utf32,
int len = -1);
139 inline void setFromAscii(
const char* ascii,
int len = -1);
142 template <
typename QStringType>
166 template <
typename QStringType>
173 template <
typename QStringType>
196 inline size_t length()
const;
246 inline explicit DtUnicode(
const unsigned short* utf16,
int len = -1);
249 inline explicit DtUnicode(
const unsigned int* utf32,
int len = -1);
268 inline void resize(
size_t newSize);
281 inline size_t size()
const;
290 inline bool unique()
const;
293 inline bool empty()
const;
317 size_t seed = 2166136261U;
319 size_t last = val.
length();
320 size_t stride = 1 + last / 10;
326 for(; first < last ; first +=
stride )