[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdeedu/khangman/khangman
From: Anne-Marie Mahfouf <annma () kde ! org>
Date: 2003-04-01 1:20:23
[Download RAW message or body]
CVS commit by annma:
some fixes
M +20 -3 khangmanview.cpp 1.13
--- kdeedu/khangman/khangman/khangmanview.cpp #1.12:1.13
@@ -108,6 +108,23 @@ void KHangManView::slotTry()
goodWord.replace((2*index), 1,sChar);
index++;
- }
- }
+ }//end of for
+ if (sChar=="í") sChar="i";
+ if (sChar=="á") sChar="a";
+ if (sChar=="ú") sChar="u";
+ if (sChar=="ó") sChar="o";
+ if (sChar=="é") sChar="e";
+ if (sChar=="ü") sChar="u";
+ if (sChar=="a") sChar="à";
+ index=0;
+ for (int count=0; count <word.contains(sChar); count++)
+ {
+ //searching for letter location
+ index = word.find(sChar,index);
+ //we replace it...
+ goodWord.replace((2*index), 1,sChar);
+ index++;
+ }//end of for
+ if (sChar=="à") sChar="a";
+ }//end of if (language=="sp")
QStringList rightChars=QStringList::split(" ", goodWord, true);
@@ -128,5 +145,5 @@ void KHangManView::slotTry()
}
}
- }
+ }//if the word contains more than zero
else //if the char is missed...
{
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic