60 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
61 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
62 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
63 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
64 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
65 0x00, 0x00, 0x00, 0x3E, 0x00, 0x00, 0x00, 0x3F,
66 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, 0x3A, 0x3B,
67 0x3C, 0x3D, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
68 0x00, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06,
69 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E,
70 0x0F, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16,
71 0x17, 0x18, 0x19, 0x00, 0x00, 0x00, 0x00, 0x00,
72 0x00, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, 0x20,
73 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28,
74 0x29, 0x2A, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30,
75 0x31, 0x32, 0x33, 0x00, 0x00, 0x00, 0x00, 0x00
89 int len = in.
size(), tail = len;
91 unsigned int eqCount = 0;
95 while(data[tail - 1] ==
'=')
110 unsigned int outIdx = 0;
111 const int count = len;
114 for(
int idx = 0; idx < count; ++idx)
116 const unsigned char ch = data[idx];
117 if((ch > 47 && ch < 58) ||
118 (ch > 64 && ch < 91) ||
119 (ch > 96 && ch < 123) ||
127 if((idx + 1) == count || data[idx + 1] ==
'=')
160 len = (tail > (len / 4)) ? tail - (len / 4) : 0;
161 int sidx = 0, didx = 0;
164 while(didx < len - 2)
166 out[didx] =(((out[sidx] << 2) & 255) | ((out[sidx + 1] >> 4) & 003));
167 out[didx + 1] =(((out[sidx + 1] << 4) & 255) | ((out[sidx + 2] >> 2) & 017));
168 out[didx + 2] =(((out[sidx + 2] << 6) & 255) | (out[sidx + 3] & 077));
175 out[didx] =(((out[sidx] << 2) & 255) | ((out[sidx + 1] >> 4) & 003));
178 out[didx] =(((out[sidx + 1] << 4) & 255) | ((out[sidx + 2] >> 2) & 017));
181 if(len == 0 || len < out.
size())
static const AtomicType::Ptr xsBase64Binary
QExplicitlySharedDataPointer< AtomicValue > Ptr
#define QT_END_NAMESPACE
This macro expands to.
virtual QString stringValue() const
char * data()
Returns a pointer to the data stored in the byte array.
The QByteArray class provides an array of bytes.
Base64Binary(const QByteArray &val)
virtual ItemType::Ptr type() const
static AtomicValue::Ptr createError(const QString &description=QString(), const ReportContext::ErrorCode=ReportContext::FORG0001)
The QString class provides a Unicode character string.
static AtomicValue::Ptr fromLexical(const QString &value)
#define QT_BEGIN_NAMESPACE
This macro expands to.
The namespace for the internal API of QtXmlPatterns.
static const char * data(const QByteArray &arr)
const char * constData() const
Returns a pointer to the data stored in the byte array.
QString simplified() const Q_REQUIRED_RESULT
Returns a string that has whitespace removed from the start and the end, and that has each sequence o...
static QString fromLatin1(const char *, int size=-1)
Returns a QString initialized with the first size characters of the Latin-1 string str...
void resize(int size)
Sets the size of the byte array to size bytes.
QByteArray toBase64() const
Returns a copy of the byte array, encoded as Base64.
int size() const
Returns the number of bytes in this byte array.
static void base64Decode(const QByteArray &in, QByteArray &out, bool &ok)
Assumes in is a lexical representation of xs:base64Binary, and converts it to the binary data set in ...
bool isEmpty() const
Returns true if the byte array has size 0; otherwise returns false.
static Base64Binary::Ptr fromValue(const QByteArray &data)
static const char Base64DecMap[128]