servatrice/cockatrice
Henry Lancelle cf9fdcd09e Translate curly apostrophe to ASCII apostrophe (#3395) (#3401)
* Translate curly apostrophe to ASCII apostrophe (#3395)

Treats the curly apostrophe as a straight apostrophe when searching in
the deck editor search bar.

* Moved logic for handeling translation to CardDatabaseDisplayModel.

This implementation was done with strings instead of characters because
the curly apostrophes and quotes are considered multi-characters.
Thus, the method of iterating through the string and replacing
the characters with the proper translations was difficult to cleanly
implement.

* clang-tidy modifications

* Implemented faster algorithm for string translation.

Optimized the algorithm for string translation, before it would compute
in O(N*M) time where N is the size of the string and M is the size of
the translation table.  Now it will compute in O(N) time where N is the
length of the string.

* Renaming variables and methods.

* Fixed character literal type, was unicode, is now wide.
2018-10-03 09:15:02 +02:00
..
resources new icons (#3289) 2018-06-17 18:09:58 -04:00
sounds fix lowercase (#2419) 2017-02-23 08:53:18 +01:00
src Translate curly apostrophe to ASCII apostrophe (#3395) (#3401) 2018-10-03 09:15:02 +02:00
themes fix lowercase (#2419) 2017-02-23 08:53:18 +01:00
translations translation pulls (#3335) 2018-07-17 20:19:40 -04:00
.qdevelop icon_draw and icon_untap added, icon_general and icon_messages modified 2009-07-31 13:37:16 +02:00
CMakeLists.txt fix #3235 (#3302) 2018-06-21 18:56:53 -04:00
cockatrice.desktop Updated Spanish translation 2011-07-16 11:38:57 +02:00
cockatrice.qrc new icons (#3289) 2018-06-17 18:09:58 -04:00
cockatrice.rc Included uninstaller for Windows version 2010-09-17 15:26:07 +02:00