aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/StringUtil.cc
AgeCommit message (Collapse)AuthorFilesLines
2015-01-16Fix uninitialized variables; cosmeticsMathias Gumz1-31/+5
Note: I expect only modern compilers will hit the source of fluxbox. It seems futile to guard stdlib headers while demanding <algorithm> etc. This should trim down the noise in the source quite a bit.
2015-01-03Fix number2*() functionsMathias Gumz1-7/+7
As correctly pointed out by 'Nable80': "%llx" does not create the 0x prefix for the hex-string. In addition to that: snprintf() adds a terminating \0.
2015-01-03Use correct buffer size for number2*()Mathias Gumz1-3/+6
2014-04-11removed reference to 'defaults.hh'Mathias Gumz1-2/+0
2013-06-29fix detection of $HOME folderMathias Gumz1-5/+29
usually $HOME is set when fluxbox runs. in some rare scenarios (eg., fuzzying binaries to detect bugs) one could launch fluxbox by using 'env -i' and thus eliminating $HOME from the environment. to prevent crashes fluxbox uses now 'getpwuid()' when $HOME is not set to detect the home folder.
2013-01-31Adds 'ClientPatternTest' commandMathias Gumz1-1/+8
ClientPatterns might be tricky to get right. Instead of fiddling around in either the keys-file or the apps-file and restarting fluxbox to see if the changes had any effect / matched the right windows, 'ClientPatternTest' and the fluxbox-remote should make this easier: $> fluxbox-remote "clientpatterntest (title=.*vim*)" This causes fluxbox to store the list of matched windows in the _FLUXBOX_ACTION_RESULT property onto the rootwindow. This property might then be read by: $> xprop -root _FLUXBOX_ACTION_RESULT or $> fluxbox-remote result The format of the list is: win_id \t title_of_window \n win_id is '-1' when fluxbox wasn't able to parse the given ClientPattern. win_id is '0' when there are no windows matching the given ClientPattern.
2012-04-10removed 'always-true' expressionPaul Tagliamonte1-1/+1
2011-10-31src/Makefile.am,FbTk/StringUtil.cc: Search relative to the executable.Ryan Pavlik1-0/+65
On Windows, prepend /DUMMYPREFIX to default paths, and replace it at runtime with the prefix relative to the exe directory.
2011-10-31FbTk/StringUtil.cc: Don't return mid-routine.Ryan Pavlik1-2/+3
Prep for Windows dummy prefix code.
2011-10-31main.cc,FbTk/StringUtil.cc: On windows, use USERPROFILE instead of HOMERyan Pavlik1-0/+4
2011-10-31FbTk/StringUtil.cc: Fix out-of-range memory access.Ryan Pavlik1-1/+1
if pos is not npos, it will always be less than filename.size(). However, the access later is only safe if there is a character after pos, which would require pos + 1 to be less than filename.size.
2010-09-17use FbTk::API to reduce code duplicationMathias Gumz1-2/+20
2010-09-14cleanup and code deduplicationMathias Gumz1-1/+1
* ClientPattern.cc: make compiler happy (complaints about XPROP not handled in switch) * FbTk/FbPixmap.cc FbTk/StringUtil.cc: signed vs unsigned * FbTk/FbString.cc: missing return * WinClient.cc: create atoms only once; use helper function * Window.cc: use a helper function
2010-09-08improved extract*Number functions from FbTk/StringUtil.ccMathias Gumz1-6/+22
2010-08-24code simplification / deduplicationMathias Gumz1-0/+18
* parse the string only once for a bunch of chars to check instead of starting over again and again from the beginning, created a helper function to do this (FbTk::StringUtil::findCharFromAlphabetAfterTrigger) * put same code into a function (setClockModeLabel()) * use much simpler code to switch between 12h and 24h mode and replace the fmt-switches
2009-10-03definition should match declarationMathias Gumz1-1/+1
2009-10-01another little helper for FbTk::StringUtil: extractNumber()Mathias Gumz1-0/+46
2009-10-01simpler codeMathias Gumz1-0/+7
2009-06-28change default toolbar tools to:Mark Tiefenbruck1-1/+1
prevworkspace, workspacename, nextworkspace, iconbar, systemtray, clock
2008-04-21some fixes for gcc 3.4Thomas Orgis1-2/+2
2008-01-04remove old svn $Id$ tagsMark Tiefenbruck1-2/+0
2007-12-14StringUtil::removeFirst/TrailingWhitespace didn't truncate a string that was ↵markt1-11/+4
only whitespace
2007-12-13added FbTk::CommandRegistry, decentralized command parsing, and made them ↵markt1-0/+12
auto-register
2007-06-29updates for compiling with gcc 4.3markt1-0/+5
2006-06-27some minor code cleanups thanks Slava Semushin (php-coder), who also thanks ↵simonb1-12/+0
Mikhail Gusarov
2006-04-02size_t fixes, thanks Semushin Slava aka php-coderfluxgen1-1/+1
2006-02-16updated copyright infomathias1-1/+1
2005-10-21Fixed #1223878, Style reloading on USR2 (patch from Zan)mathias1-27/+28
cosmetic stuff in StringUtil.cc/hh
2005-10-20added replaceStringfluxgen1-1/+25
2005-01-24copyright datemathias1-1/+1
2004-11-19svn propset svn:keywords "Id"mathias1-1/+1
2004-09-10cosmetic, man, we need a beautifarm :)akir1-16/+16
2004-08-31add autoconf check for std c++ headersrathnor1-5/+21
2004-05-02copyright updatefluxgen1-2/+2
2004-02-28fixed bug in removeTrailingWhitespace, patch from Mathias Gumzfluxgen1-2/+2
2003-12-16fixed some icc warningsfluxgen1-1/+2
2003-10-25added removeTrailingWhitespacefluxgen1-18/+31
2003-09-29added removeFirstWhitespacefluxgen1-1/+8
2003-08-22fixed basenamefluxgen1-1/+8
2003-08-22cleaning, added toUpper and findExtensionfluxgen1-9/+22
2003-08-10fix ~ to work properly in session.menuFilerathnor1-3/+2
2003-07-01make it work... (fix some small issues)rathnor1-1/+8
2003-06-12add support for nesting in getStringBetweenrathnor1-7/+16
2003-04-26moved from fluxbox sourcefluxgen1-0/+148