Revision 579906

Go back to digest for 3rd September 2006

Features in Networking Tools

Diego Iastrubni committed changes in /trunk/extragear/network/konversation/src/ircview.cpp:

this is an experimental patch which aims at testing a new algorythm for detecting the direction of the string: istead of checking the first strong character, this tests for the whole sentence and counts the appearence of LTR and RTL chars. this also counts for neutral chars and if the sentence has no real direction, the next stage will be to keep the direction of the last line.

this will help people writing lines like:
:)

after writing a hebrew/arabic line. the smilie will be also RTL.

as a bonus, on the commented code i cached up the string length. no need to compute it all the time. another small optimization should be using pointers and not arrays (or QChar::at() ) which is o(n) instead of o(1).

boy, how i miss qt4 :)

File Changes

Modified 1 files
  • /trunk/extragear/network/konversation/src/ircview.cpp
1 files changed in total