[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: [PATCH] KStringHandler::obscure
From: Szombathelyi György <gyurco () freemail ! hu>
Date: 2003-11-24 19:46:03
[Download RAW message or body]
Hi!
Here's a patch for KStringHandler::obscure(). Current version in CVS doesn't
work at all. My version also changes the algorithm somewhat, so identical
charaters will be encoded to different chars. I hope it's not a problem,
since the function is new in 3.2.
Regards,
György
____________________________________________________________________
Miert fizetsz az internetert? Korlatlan, ingyenes internet hozzaferes a FreeStarttol.
Probald ki most! http://www.freestart.hu
["kstringhandler.diff" (text/x-diff)]
--- kdecore/kstringhandler.cpp.old 2003-11-23 20:34:56.000000000 +0100
+++ kdecore/kstringhandler.cpp 2003-11-24 20:38:11.000000000 +0100
@@ -646,9 +646,7 @@
{
QString result;
for ( uint i = 0; i < str.length(); ++i )
- result += ( str.unicode()[ i ].unicode() < 0x20 ) ? str.unicode()[ i ] :
- QChar( 0x1001F - str.unicode()[ i ] );
-
+ result += str[i] ^ ( 0x1234F >> i );
return result;
}
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic