kioslave/imap4
37 while ( inputChar( input ) ) {
39 if ( input ==
'\n' ) {
47 int mimeIO::outputLine (
const QByteArray & aLine,
int len)
55 for ( i = 0; i < start; ++i ) {
56 if ( !outputChar( aLine[i] ) ) {
63 int mimeIO::outputMimeLine (
const QByteArray & inLine)
70 if ( theLF == len - 1 && theLF != -1 ) {
72 if ( aLine[theLF - 1] ==
'\r' ) {
82 int start, end, offset;
84 end = aLine.
indexOf(
'\n', start );
87 if ( end && aLine[end - 1] ==
'\r' ) {
91 outputLine( aLine.
mid( start, end - start ) + theCRLF, end - start + crlfLen );
93 end = aLine.
indexOf(
'\n', start );
95 outputLine( aLine.
mid( start, len - start ) + theCRLF, len - start + crlfLen );
100 int mimeIO::inputChar (
char &aChar)
110 int mimeIO::outputChar (
char aChar)
122 mimeIOQFile::mimeIOQFile (
const QString & aName):
126 myFile.open( QIODevice::ReadOnly );
129 mimeIOQFile::~mimeIOQFile ()
134 int mimeIOQFile::outputLine (
const QByteArray &,
int)
139 int mimeIOQFile::inputLine (
QByteArray & data)
142 myFile.readLine( data.
data(), 1024 );
147 mimeIOQString::mimeIOQString ()
151 mimeIOQString::~mimeIOQString ()
155 int mimeIOQString::outputLine (
const QByteArray & _str,
int len)
164 int mimeIOQString::inputLine (
QByteArray & _str)
166 if ( theString.isEmpty() ) {
170 int i = theString.
indexOf(
'\n' );
175 _str = theString.
left( i + 1 ).toLatin1();
176 theString = theString.
right( theString.length() - i - 1 );
int lastIndexOf(char ch, int from) const
int indexOf(char ch, int from) const
QByteArray right(int len) const
QByteArray mid(int pos, int len) const
QByteArray left(int len) const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:37:08 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.