Root/
Source at commit 1322 created 12 years 7 months ago. By meklort, Add doxygen to utils folder | |
---|---|
1 | #ifndef STRINGIMPL_H␊ |
2 | #define STRINGIMPL_H␊ |
3 | ␊ |
4 | #include <qstring.h>␊ |
5 | #include "doxmlintf.h"␊ |
6 | ␊ |
7 | class StringImpl : public QString, public IString␊ |
8 | {␊ |
9 | public:␊ |
10 | StringImpl() {}␊ |
11 | StringImpl(const QString &str) : QString(str) {}␊ |
12 | StringImpl &operator=(const QString &str) ␊ |
13 | { QString::operator=(str); return *this; }␊ |
14 | virtual ~StringImpl() {}␊ |
15 | ␊ |
16 | // IString ␊ |
17 | const char *latin1() const ␊ |
18 | { return QString::latin1(); }␊ |
19 | const char *utf8() const ␊ |
20 | { return QString::utf8(); }␊ |
21 | unsigned short unicodeCharAt(int index) const ␊ |
22 | { return QString::unicode()[index].unicode(); } ␊ |
23 | bool isEmpty() const ␊ |
24 | { return QString::isEmpty(); }␊ |
25 | int length() const ␊ |
26 | { return QString::length(); }␊ |
27 | };␊ |
28 | ␊ |
29 | #endif␊ |
30 | ␊ |
31 |