]>
Dogcows Code - chaz/openbox/blob - otk/util.hh
1 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
2 #ifndef _BLACKBOX_UTIL_HH
3 #define _BLACKBOX_UTIL_HH
9 #ifdef TIME_WITH_SYS_TIME
10 # include <sys/time.h>
12 #else // !TIME_WITH_SYS_TIME
13 # ifdef HAVE_SYS_TIME_H
14 # include <sys/time.h>
15 # else // !HAVE_SYS_TIME_H
17 # endif // HAVE_SYS_TIME_H
18 #endif // TIME_WITH_SYS_TIME
27 /* XXX: this needs autoconf help */
28 const unsigned int BSENTINEL
= 65535;
30 std::string
expandTilde(const std::string
& s
);
32 void bexec(const std::string
& command
, const std::string
& displaystring
);
34 std::string
textPropertyToString(Display
*display
, XTextProperty
& text_prop
);
36 std::string
itostring(unsigned long i
);
37 std::string
itostring(long i
);
38 inline std::string
itostring(unsigned int i
)
39 { return itostring((unsigned long) i
); }
40 inline std::string
itostring(int i
)
41 { return itostring((long) i
); }
46 std::string
basename(const std::string
& path
);
This page took 0.037772 seconds and 4 git commands to generate.