summaryrefslogtreecommitdiffstats
path: root/addon/doxmlparser/src/stringimpl.h
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2002-04-21 17:27:45 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2002-04-21 17:27:45 (GMT)
commitff31b2f109848ea3e08fb17d5821beb7af879193 (patch)
tree4859bfed167f695f5ce9e9c0f2f6f02313de2ed3 /addon/doxmlparser/src/stringimpl.h
parentbc629c9003d59b736cc996a05b95bac8ab50123a (diff)
downloadDoxygen-ff31b2f109848ea3e08fb17d5821beb7af879193.zip
Doxygen-ff31b2f109848ea3e08fb17d5821beb7af879193.tar.gz
Doxygen-ff31b2f109848ea3e08fb17d5821beb7af879193.tar.bz2
Release-1.2.15-20020421
Diffstat (limited to 'addon/doxmlparser/src/stringimpl.h')
-rw-r--r--addon/doxmlparser/src/stringimpl.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/addon/doxmlparser/src/stringimpl.h b/addon/doxmlparser/src/stringimpl.h
new file mode 100644
index 0000000..017a0b6
--- /dev/null
+++ b/addon/doxmlparser/src/stringimpl.h
@@ -0,0 +1,26 @@
+#ifndef STRINGIMPL_H
+#define STRINGIMPL_H
+
+#include <qstring.h>
+#include "doxmlintf.h"
+
+class StringImpl : public QString, public IString
+{
+ public:
+ StringImpl() {}
+ StringImpl(const QString &str) : QString(str) {}
+ virtual ~StringImpl() {}
+
+ // IString
+ const char *latin1() const
+ { return QString::latin1(); }
+ unsigned short unicodeCharAt(int index) const
+ { return QString::unicode()[index].unicode(); }
+ bool isEmpty() const
+ { return QString::isEmpty(); }
+ int length() const
+ { return QString::length(); }
+};
+
+#endif
+