fluxbox/src/FbTk
Mathias Gumz 533c9a2aa5 Fix bug in detecting text in MenuSearch
A bug sneaked into my implementation of Boyer-Moore-Horspool. This lead
to not finding certain patterns. Given the text 'abcdde' and the pattern
'dd', the faulty implementation would not find 'dd':

1. 'ab' does not match, skip 2 (length of pattern)
2. 'cd' does not match, skip 2 (length of pattern) <- the bug.
3. 'de' does not match, end of string

The bug in step 2 is to not use 'd' to detect how far to skip but to
use 'c' (which is not in the skip-table) and thus 2 bytes are skipped).
2015-05-02 14:04:50 +02:00
..
Accessor.hh some fixes for gcc 3.4 2008-04-21 15:43:10 -07:00
App.cc Make fluxbox strcat() free 2015-01-29 11:43:05 +01:00
App.hh bugfix: avoid naive use of 'putenv' by providing 'FbTk::App::setenv()' 2010-09-17 23:43:24 +02:00
AutoReloadHelper.cc cleanup of some files 2008-08-14 07:53:38 +02:00
AutoReloadHelper.hh cleanup of some files 2008-08-14 07:53:38 +02:00
BoolMenuItem.hh compile fix: using correct forward declaration for template classes 2009-10-01 07:34:37 +02:00
BorderTheme.cc some fixes for gcc 3.4 2008-04-21 15:43:10 -07:00
BorderTheme.hh some fixes for gcc 3.4 2008-04-21 15:43:10 -07:00
Button.cc make clicking on the border of the toolbar activate toolbar buttons 2008-08-23 17:14:31 -07:00
Button.hh add tooltips for iconbar buttons when title is too long to fit 2008-05-05 05:05:52 -07:00
CachedPixmap.cc cached pixmap helper, works like auto ptr for cached pixmaps 2006-10-16 18:47:27 +00:00
CachedPixmap.hh cached pixmap helper, works like auto ptr for cached pixmaps 2006-10-16 18:47:27 +00:00
Color.cc improved code documentation 2013-01-13 12:25:00 +01:00
Color.hh improved code documentation 2013-01-13 12:25:00 +01:00
ColorLUT.cc Improve calculation of brighter colors 2013-01-23 09:46:08 +01:00
ColorLUT.hh Improve calculation of brighter colors 2013-01-23 09:46:08 +01:00
Command.hh Make FbTk::Command inherit from FbTk::Slot 2011-09-14 19:39:10 +02:00
CommandParser.hh cosmetic fix: removed warning about double ';' after command 2009-09-30 21:08:55 +02:00
CompareEqual.hh remove old svn $Id$ tags 2008-01-03 17:34:12 -08:00
Compose.hh remove old svn $Id$ tags 2008-01-03 17:34:12 -08:00
Container.cc Remove 'always true' condition 2015-01-22 10:14:59 +01:00
Container.hh bugfix: consistent use of 'int' for alpha values (#3187373) 2011-02-22 22:07:39 +01:00
DefaultValue.hh some fixes for gcc 3.4 2008-04-21 15:43:10 -07:00
EventHandler.hh don't let KeyRelease events propagate to windows 2008-09-28 01:26:21 -07:00
EventManager.cc don't let KeyRelease events propagate to windows 2008-09-28 01:26:21 -07:00
EventManager.hh Clean unused variables 2015-01-03 21:42:24 +01:00
FbDrawable.cc some cleanup 2008-08-16 05:54:07 -07:00
FbDrawable.hh some cleanup 2008-08-16 05:54:07 -07:00
FbPixmap.cc clean up resources on shutdown 2011-10-23 11:51:36 +02:00
FbPixmap.hh split Text.hh into Orientation.hh and TextUtils.{cc,hh} 2008-01-15 08:45:57 +01:00
FbString.cc Don't assume ICONV_NULL = 0 2015-04-11 08:25:59 +02:00
FbString.hh build-sys: include config.h to all files using automake 2013-05-26 10:38:10 +01:00
FbTime.cc FbTk::FbTime::mono() yields microseconds since fluxbox started 2013-02-10 11:10:36 +01:00
FbTime.hh allow a timeout of a full 'unit' 2014-05-12 12:28:31 +02:00
FbWindow.cc Fix broken _NET_REQUEST_FRAME_EXTENTS support 2015-01-22 10:14:12 +01:00
FbWindow.hh Fix broken _NET_REQUEST_FRAME_EXTENTS support 2015-01-22 10:14:12 +01:00
FileUtil.cc Fix to make clang happy 2015-01-03 21:47:51 +01:00
FileUtil.hh build-sys: include config.h to all files using automake 2013-05-26 10:38:10 +01:00
Font.cc Code cleanup 2015-01-10 22:57:00 +01:00
Font.hh Clean unused variables 2015-01-03 21:42:24 +01:00
FontImp.hh Fix signature FbTk::FontImp::rotate() 2015-01-03 21:43:51 +01:00
GContext.cc remove old svn $Id$ tags 2008-01-03 17:34:12 -08:00
GContext.hh some cleanup 2008-08-16 05:54:07 -07:00
I18n.cc Move nls globals into #ifdef NLS 2015-02-04 21:06:32 +01:00
I18n.hh Clean up FbTk::I18n API 2015-01-31 12:04:30 +01:00
Image.cc build-sys: include config.h to all files using automake 2013-05-26 10:38:10 +01:00
Image.hh cosmetic fixes: removed redundant ';' + some whitespaces 2009-09-30 21:02:24 +02:00
ImageControl.cc build-sys: use AC_USE_SYSTEM_EXTENSIONS 2013-05-26 10:38:10 +01:00
ImageControl.hh Clean unused variables 2015-01-03 21:42:24 +01:00
ImageImlib2.cc Pre-increment non-primitive types. 2012-01-04 07:53:54 +01:00
ImageImlib2.hh Bugfix: clean up static resources correctly 2011-10-23 00:01:45 +02:00
ImageXPM.cc remove old svn $Id$ tags 2008-01-03 17:34:12 -08:00
ImageXPM.hh remove old svn $Id$ tags 2008-01-03 17:34:12 -08:00
IntMenuItem.hh introduced FbTk::BidiString 2010-09-08 20:17:21 +02:00
ITypeAheadable.hh Feature: typeahead in menu matches text anywhere 2015-01-28 16:02:59 +01:00
KeyUtil.cc replace XKeycodeToKeysym() with XkbKeycodeToKeysym() 2012-12-30 20:31:25 +01:00
KeyUtil.hh remove old svn $Id$ tags 2008-01-03 17:34:12 -08:00
Layer.cc renamed FbTk::XLayer to FbTk::Layer and FbTk::XLayerItem to FbTk::LayerItem 2011-02-23 22:49:27 +01:00
Layer.hh Make Layer::getLayerNum() const. 2015-05-01 10:46:21 +02:00
LayerItem.cc renamed FbTk::XLayer to FbTk::Layer and FbTk::XLayerItem to FbTk::LayerItem 2011-02-23 22:49:27 +01:00
LayerItem.hh compile fix: added <cstdlib> to provide declaration for 'size_t' (gcc-4.6.x likes it that way) 2011-03-28 09:06:22 +02:00
LogicCommands.cc Remove the assignment operator from a regular pointer to a RefCount 2011-09-14 19:39:11 +02:00
LogicCommands.hh Make RefCount<> more sensible 2011-05-10 13:00:45 +02:00
MacroCommand.cc Remove the assignment operator from a regular pointer to a RefCount 2011-09-14 19:39:11 +02:00
MacroCommand.hh compile fix: added <cstdlib> to provide declaration for 'size_t' (gcc-4.6.x likes it that way) 2011-03-28 09:06:22 +02:00
Makemodule.am Feature: different MenuSearch modes 2015-02-05 21:30:44 +01:00
MemFun.hh Added FbTk::MemFunBind - a functor which binds all arguments of a function 2011-05-10 13:00:45 +02:00
Menu.cc Minor 2015-02-07 18:05:41 +01:00
Menu.hh Feature: different MenuSearch modes 2015-02-05 21:30:44 +01:00
MenuItem.cc Show toggleitems in menu 2015-02-07 10:13:43 +01:00
MenuItem.hh roll back 7e17056: m_index does not exist anymore 2015-05-01 10:50:50 +02:00
MenuSearch.cc Fix bug in detecting text in MenuSearch 2015-05-02 14:04:50 +02:00
MenuSearch.hh Feature: different MenuSearch modes 2015-02-05 21:30:44 +01:00
MenuSeparator.cc update code to use ThemeProxy 2008-01-04 17:39:19 -08:00
MenuSeparator.hh update code to use ThemeProxy 2008-01-04 17:39:19 -08:00
MenuTheme.cc Add menu.hilite.font and menu.hilite.justify style resources 2012-08-03 11:37:34 +02:00
MenuTheme.hh Add menu.hilite.font and menu.hilite.justify style resources 2012-08-03 11:37:34 +02:00
MultiButtonMenuItem.cc No need to check if a pointer is null before de-allocating it. 2012-01-04 07:43:21 +01:00
MultiButtonMenuItem.hh introduced FbTk::BidiString 2010-09-08 20:17:21 +02:00
MultLayers.cc renamed FbTk::XLayer to FbTk::Layer and FbTk::XLayerItem to FbTk::LayerItem 2011-02-23 22:49:27 +01:00
MultLayers.hh compile fix: added <cstdlib> to provide declaration for 'size_t' (gcc-4.6.x likes it that way) 2011-03-28 09:06:22 +02:00
NotCopyable.hh copyright date 2005-01-24 18:02:34 +00:00
Orientation.hh split Text.hh into Orientation.hh and TextUtils.{cc,hh} 2008-01-15 08:45:57 +01:00
Parser.cc cosmetic fixes: removed redundant ';' + some whitespaces 2009-09-30 21:02:24 +02:00
Parser.hh some fixes for gcc 3.4 2008-04-21 15:43:10 -07:00
PixmapWithMask.hh remove old svn $Id$ tags 2008-01-03 17:34:12 -08:00
RadioMenuItem.hh add selection box to various "choose one of these" menu items 2008-08-03 21:59:14 -07:00
RefCount.hh Add comparison operators to FbTk::RefCount 2011-09-14 19:39:11 +02:00
RegExp.cc build-sys: use AC_USE_SYSTEM_EXTENSIONS 2013-05-26 10:38:10 +01:00
RegExp.hh build-sys: include config.h to all files using automake 2013-05-26 10:38:10 +01:00
RelCalcHelper.cc Fix casting issues 2015-01-16 10:52:38 +01:00
RelCalcHelper.hh Allow percentage values for some Window commands 2012-04-06 14:11:16 +02:00
Resource.cc Feature: different MenuSearch modes 2015-02-05 21:30:44 +01:00
Resource.hh Add -no-slit and -no-toolbar flags 2015-01-22 16:28:53 +01:00
Select2nd.hh remove old svn $Id$ tags 2008-01-03 17:34:12 -08:00
SelectArg.hh Added SelectArg and MemFunSelectArg* 2010-03-19 02:23:41 +01:00
Shape.cc build-sys: include config.h to all files using automake 2013-05-26 10:38:10 +01:00
Shape.hh cleanup created corner pixmaps, moved the initCorners() function out of the class 2010-05-16 14:25:36 +02:00
Signal.hh Enable connecting to const Signals 2011-09-14 19:39:11 +02:00
SimpleCommand.hh make FbTk::Command a template class, split parsing information out of ObjectRegistry 2008-01-10 23:41:22 -08:00
Slot.hh Add explicit ReturnType cast to operator() of FbTk::Slots 2011-09-14 19:39:11 +02:00
STLUtil.hh Pre-increment non-primitive types. 2012-01-04 07:53:54 +01:00
stringstream.hh build-sys: include config.h to all files using automake 2013-05-26 10:38:10 +01:00
StringUtil.cc Fix uninitialized variables; cosmetics 2015-01-16 10:52:00 +01:00
StringUtil.hh Reduce the scope of the variable err in stringTokensBetween. 2015-05-01 10:46:21 +02:00
TextBox.cc introduced FbTk::BidiString 2010-09-08 20:17:21 +02:00
TextBox.hh TextBox::textStartPos can be const. 2015-05-01 10:46:21 +02:00
TextButton.cc Fix text rendering in rotated TextButtons 2015-01-24 10:31:38 +01:00
TextButton.hh Remove dead code 2015-01-10 22:51:57 +01:00
TextTheme.cc Code cleanup 2015-01-10 22:57:00 +01:00
TextTheme.hh some fixes for gcc 3.4 2008-04-21 15:43:10 -07:00
Texture.cc Improve calculation of brighter colors 2013-01-23 09:46:08 +01:00
Texture.hh renamed Texture:DEFAULT_BEVEL to Texture::DEFAULT_LEVEL 2011-02-22 15:18:20 +01:00
TextureRender.cc Remove dead / unused code 2015-01-03 18:50:20 +01:00
TextureRender.hh Rewrite of FbTk::TextureRender 2012-11-08 11:02:28 +01:00
TextUtils.cc Improve code documentation 2015-01-24 10:35:21 +01:00
TextUtils.hh Improve code documentation 2015-01-24 10:35:21 +01:00
Theme.cc Fixed bug: use expanded style/theme filename 2012-12-11 19:37:59 +01:00
Theme.hh Last round of simplification of Signal/Slot classes 2011-05-10 13:00:45 +02:00
ThemeItems.cc build-sys: include config.h to all files using automake 2013-05-26 10:38:10 +01:00
Timer.cc Cleanup; Remove unused function 2015-02-05 21:35:02 +01:00
Timer.hh detect minute-based strftime-formats (again) 2014-05-12 12:17:00 +02:00
Transparent.cc Move internal code to internal side of FbTk::Transparent 2015-02-08 11:06:58 +01:00
Transparent.hh Move internal code to internal side of FbTk::Transparent 2015-02-08 11:06:58 +01:00
Util.hh added FbTk::Util::clamp() and simplified related code 2010-09-09 15:31:54 +02:00
XFontImp.cc Use strncpy() instead of strcpy() 2015-01-29 11:52:00 +01:00
XFontImp.hh code simplification 2010-09-08 20:48:01 +02:00
XftFontImp.cc merge Sami Kerola's new build-system 2014-04-11 17:42:40 +02:00
XftFontImp.hh Speedup overlong text detection 2013-06-18 17:43:28 +02:00
XmbFontImp.cc Code cleanup 2015-01-10 22:57:00 +01:00
XmbFontImp.hh introduced FbTk::BidiString 2010-09-08 20:17:21 +02:00
XrmDatabaseHelper.hh FbTk/XrmDatabaseHelper.hh: operator== can be const. 2012-01-04 07:55:17 +01:00