14 #include <boost/functional/hash.hpp>
15 #include <boost/serialization/split_free.hpp>
96 template <
typename QStringType,
typename QCoreApp>
100 0, QCoreApp::UnicodeUTF8);
104 template <
typename QStringType>
107 return fromUtf16(qstr.utf16(),qstr.length());
120 inline void setFromUtf8(
const unsigned char* utf8,
int len = -1);
129 inline void setFromUtf16(
const unsigned short* utf16,
int len = -1);
133 inline void setFromUtf32(
const unsigned int* utf32,
int len = -1);
141 inline void setFromAscii(
const char* ascii,
int len = -1);
144 template <
typename QStringType>
168 template <
typename QStringType>
175 template <
typename QStringType>
198 inline size_t length()
const;
245 inline explicit DtUnicode(
const unsigned short* utf16,
int len = -1);
248 inline explicit DtUnicode(
const unsigned int* utf32,
int len = -1);
267 inline void resize(
size_t newSize);
280 inline size_t size()
const;
289 inline bool unique()
const;
292 inline bool empty()
const;
316 size_t seed = 2166136261U;
318 size_t last = val.
length();
319 size_t stride = 1 + last / 10;
325 for(; first < last ; first +=
stride )