AppleSAWS/src/util/applestring.h
2015-12-14 03:35:40 -06:00

33 lines
530 B
C++

#ifndef APPLESTRING_H
#define APPLESTRING_H
#include <QVector>
#include <QChar>
#include <QString>
#include <QByteArray>
#include "util.h"
class AppleChar {
public:
AppleChar() { m_val = 0; }
AppleChar(quint8 ch) { m_val = ch; }
QChar printable() const;
TextAttribute getAttribute() const;
TextSet getTextSet() const;
private:
quint8 m_val;
};
class AppleString : public QByteArray {
public:
QString printable() const;
QVector<TextAttribute> attributes() const;
};
#endif // APPLESTRING_H