summaryrefslogtreecommitdiffstats
path: root/addon/doxmlparser/src/stringimpl.h
blob: 017a0b687bcf25c3a639e5f3afa51a388973c2d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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