70 const QChar *sdata = uc;
72 for (; i < len; ++i, ++sdata, ++rdata) {
73 if (sdata->unicode() < 0x80) {
75 }
else if (sdata->unicode() >= 0xff61 && sdata->unicode() <= 0xff9f) {
76 *rdata = (
uchar) (sdata->unicode() - 0xff61 + 0xa1);
106 return "jisx0208*-0";
126 const QChar *ucp = uc;
128 for (
int i = 0; i < len; i++) {
130 ch = convJP->unicodeToJisx0208(ch.
unicode());
134 *rdata++ = ch.
cell();
#define QT_END_NAMESPACE
This macro expands to.
char * data()
Returns a pointer to the data stored in the byte array.
ushort unicode() const
This is an overloaded member function, provided for convenience. It differs from the above function o...
bool isNull() const
Returns true if the character is the Unicode character 0x0000 ('\0'); otherwise returns false...
The QByteArray class provides an array of bytes.
The QString class provides a Unicode character string.
The QChar class provides a 16-bit Unicode character.
QString convertToUnicode(const char *, int, ConverterState *) const
QTextCodec subclasses must reimplement this function.
static QByteArray _name()
#define QT_BEGIN_NAMESPACE
This macro expands to.
static QByteArray _name()
QString convertToUnicode(const char *, int, ConverterState *) const
QTextCodec subclasses must reimplement this function.
QByteArray convertFromUnicode(const QChar *uc, int len, ConverterState *) const
QTextCodec subclasses must reimplement this function.
void resize(int size)
Sets the size of the byte array to size bytes.
uchar cell() const
Returns the cell (least significant byte) of the Unicode character.
static QJpUnicodeConv * newConverter(int rule)
uchar row() const
Returns the row (most significant byte) of the Unicode character.
QByteArray convertFromUnicode(const QChar *uc, int len, ConverterState *) const
QTextCodec subclasses must reimplement this function.