[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/lib/kospell
From: Kazuki Ohta <mover () hct ! zaq ! ne ! jp>
Date: 2004-01-12 5:09:43
Message-ID: 20040112050943.B312D906E () office ! kde ! org
[Download RAW message or body]
CVS commit by kzk:
abolish deprecated function KProcIO::fgets and KProcIO::fputs, and replaced by \
KProcIO::readln and KProcIO::writeStdin
M +17 -17 koispell.cpp 1.21
--- koffice/lib/kospell/koispell.cpp #1.20:1.21
@@ -267,5 +267,5 @@ void KOISpell::KSpell2 (KProcIO *)
QString line;
- if (proc->fgets (line, true)==-1)
+ if (proc->readln (line, true)==-1)
{
QTimer::singleShot( 0, this, SLOT(emitDeath()));
@@ -336,10 +336,10 @@ bool KOISpell::addPersonal (const QStrin
personaldict=true;
- return proc->fputs(qs);
+ return proc->writeStdin(qs);
}
bool KOISpell::writePersonalDictionary ()
{
- return proc->fputs ("#");
+ return proc->writeStdin ("#");
}
@@ -354,5 +354,5 @@ bool KOISpell::ignore (const QString & w
qs.prepend ("@");
- return proc->fputs(qs);
+ return proc->writeStdin(qs);
}
@@ -380,5 +380,5 @@ KOISpell::cleanFputsWord (const QString
if (empty) return false;
- return proc->fputs("^"+qs, appendCR);
+ return proc->writeStdin("^"+qs, appendCR);
}
@@ -401,8 +401,8 @@ KOISpell::cleanFputs (const QString & s,
qs="";
- return proc->fputs ("^"+qs, appendCR);
+ return proc->writeStdin ("^"+qs, appendCR);
}
else
- return proc->fputs ("^\n",appendCR);
+ return proc->writeStdin (QString("^\n"),appendCR);
}
@@ -429,5 +429,5 @@ bool KOISpell::checkWord (const QString
// connect (this, SIGNAL (dialog3()), this, SLOT (checkWord3()));
- proc->fputs ("%"); // turn off terse mode
+ proc->writeStdin ("%"); // turn off terse mode
cleanFputsWord( qs ); // send the word to ispell
@@ -462,5 +462,5 @@ bool KOISpell::checkWord (const QString
OUTPUT (checkWord2);
- proc->fputs ("%"); // turn off terse mode
+ proc->writeStdin ("%"); // turn off terse mode
cleanFputsWord( qs ); // send the word to ispell
@@ -475,5 +475,5 @@ void KOISpell::checkWord2 (KProcIO *)
QString line;
- proc->fgets (line, true); //get ispell's response
+ proc->readln (line, true); //get ispell's response
/* ispell man page: "Each sentence of text input is terminated with an
@@ -481,5 +481,5 @@ void KOISpell::checkWord2 (KProcIO *)
the input line." */
QString blank_line;
- proc->fgets(blank_line, true); // eat the blank line
+ proc->readln(blank_line, true); // eat the blank line
NOOUTPUT(checkWord2);
@@ -510,5 +510,5 @@ void KOISpell::checkWord2Synchronous (KP
QString line;
- proc->fgets (line, true); //get ispell's response
+ proc->readln (line, true); //get ispell's response
/* ispell man page: "Each sentence of text input is terminated with an
@@ -516,5 +516,5 @@ void KOISpell::checkWord2Synchronous (KP
the input line." */
QString blank_line;
- proc->fgets(blank_line, true); // eat the blank line
+ proc->readln(blank_line, true); // eat the blank line
NOOUTPUT(checkWord2);
@@ -687,5 +687,5 @@ bool KOISpell::checkList (QStringList *_
dialog3slot = SLOT (checkList4 ());
- proc->fputs ("%"); // turn off terse mode & check one word at a time
+ proc->writeStdin ("%"); // turn off terse mode & check one word at a time
//lastpos now counts which *word number* we are at in checkListReplaceCurrent()
@@ -749,5 +749,5 @@ void KOISpell::checkList3a (KProcIO *)
do
{
- tempe=proc->fgets (line, true); //get ispell's response
+ tempe=proc->readln (line, true); //get ispell's response
//kdDebug(30006) << "checkList3a: read bytes [" << tempe << "]" << endl;
@@ -886,5 +886,5 @@ bool KOISpell::check( const QString &_bu
// KProcIO calls check2 when read from ispell
OUTPUT(check2);
- proc->fputs ("!");
+ proc->writeStdin ("!");
//lastpos is a position in newbuffer (it has offset in it)
@@ -927,5 +927,5 @@ void KOISpell::check2 (KProcIO *)
do
{
- tempe=proc->fgets (line); //get ispell's response
+ tempe=proc->readln (line); //get ispell's response
kdDebug(30006) << "KSpell::check2 (" << tempe << "b)" << endl;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic