char XQueryTokenizer::peekCurrent() const
{
- return current().toAscii();
+ return current().toLatin1();
}
int XQueryTokenizer::peekForColonColon() const
while(pos < m_length)
{
- switch(m_data.at(pos).toAscii())
+ switch(m_data.at(pos).toLatin1())
{
/* Fallthrough these four. */
case ' ':
char XQueryTokenizer::peekAhead(const int length) const
{
if(m_pos + length < m_length)
- return m_data.at(m_pos + length).toAscii();
+ return m_data.at(m_pos + length).toLatin1();
else
return 0;
}
for(int i = offset; i < (len + offset); ++i)
{
- if(m_data.at(m_pos + i).toAscii() != chs[i - offset])
+ if(m_data.at(m_pos + i).toLatin1() != chs[i - offset])
return false;
}
const TokenMap *XQueryTokenizer::lookupKeyword(const QString &keyword)
{
- return TokenLookup::value(keyword.toAscii().constData(), keyword.length());
+ return TokenLookup::value(keyword.toLatin1().constData(), keyword.length());
}
XQueryTokenizer::State XQueryTokenizer::state() const
// Mandriva; old test server
expected << QByteArray( "* OK [CAPABILITY IMAP4 IMAP4rev1 LITERAL+ ID STARTTLS LOGINDISABLED] " )
- .append(QtNetworkSettings::serverName().toAscii())
+ .append(QtNetworkSettings::serverName().toLatin1())
.append(" Cyrus IMAP4 v2.3.11-Mandriva-RPM-2.3.11-6mdv2008.1 server ready\r\n");
// Ubuntu 10.04; new test server
expected << QByteArray( "* OK " )
- .append(QtNetworkSettings::serverLocalName().toAscii())
+ .append(QtNetworkSettings::serverLocalName().toLatin1())
.append(" Cyrus IMAP4 v2.2.13-Debian-2.2.13-19 server ready\r\n");
// Feel free to add more as needed
// Mandriva; old test server
expected << QByteArray( "* OK [CAPABILITY IMAP4 IMAP4rev1 LITERAL+ ID AUTH=PLAIN SASL-IR] " )
- .append(QtNetworkSettings::serverName().toAscii())
+ .append(QtNetworkSettings::serverName().toLatin1())
.append(" Cyrus IMAP4 v2.3.11-Mandriva-RPM-2.3.11-6mdv2008.1 server ready\r\n");
// Ubuntu 10.04; new test server
expected << QByteArray( "* OK " )
- .append(QtNetworkSettings::serverLocalName().toAscii())
+ .append(QtNetworkSettings::serverLocalName().toLatin1())
.append(" Cyrus IMAP4 v2.2.13-Debian-2.2.13-19 server ready\r\n");
// Feel free to add more as needed
{
QTextStream out(stderr);
- out << tr("%1 version %2 using Qt %3").arg(QCoreApplication::applicationName(), applicationVersion, QString::fromAscii(qVersion()))
+ out << tr("%1 version %2 using Qt %3").arg(QCoreApplication::applicationName(), applicationVersion, QString::fromLatin1(qVersion()))
<< endl;
}