all repos — fluxbox @ ead4aa8b5448a19b66a230c6a8c817f35ac4394e

custom fork of the fluxbox windowmanager

using StringUtil
fluxgen fluxgen
commit

ead4aa8b5448a19b66a230c6a8c817f35ac4394e

parent

cac009a7ad8650d85f8b40a330ed4bc4c146e5c7

1 files changed, 6 insertions(+), 3 deletions(-)

jump to
M src/FbTk/XmbFontImp.ccsrc/FbTk/XmbFontImp.cc

@@ -19,11 +19,14 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: XmbFontImp.cc,v 1.4 2002/12/02 19:31:05 fluxgen Exp $ +// $Id: XmbFontImp.cc,v 1.5 2003/02/17 23:36:43 fluxgen Exp $ #include "XmbFontImp.hh" #include "App.hh" + +//!! TODO: Change this +#include "../StringUtil.hh" #ifdef HAVE_CONFIG_H #include "config.h"

@@ -47,7 +50,7 @@

namespace { #ifndef HAVE_STRCASESTR -// +//!! TODO this is moved to StringUtil // Tries to find a string in another and // ignoring the case of the characters // Returns 0 on success else pointer to str.

@@ -101,7 +104,7 @@ va_start(va, bufsiz);

buf[bufsiz-1] = 0; buf[bufsiz-2] = '*'; while((v = va_arg(va, char *)) != 0) { - p = ::strcasestr(pattern, v); + p = StringUtil::strcasestr(pattern, v); if (p) { std::strncpy(buf, p+1, bufsiz-2); p2 = strchr(buf, '-');