diff options
Diffstat (limited to 'tools.cpp')
-rw-r--r-- | tools.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -1,4 +1,5 @@ #include <stdexcept> +#include <iomanip> #include <tnt/ecpp.h> #include <tnt/htmlescostream.h> #include <tnt/httprequest.h> @@ -8,6 +9,7 @@ #include "setup.h" #include "tools.h" + using namespace std; using namespace tnt; @@ -121,4 +123,12 @@ string StringTrim(string const& str) return res; } +string ZeroPad(int number) +{ + ostringstream os; + os << setw(2) << setfill('0') << number; + return os.str(); +} + + } // namespace vdrlive |