summaryrefslogtreecommitdiff
path: root/tools.h
diff options
context:
space:
mode:
authorDieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de>2008-03-23 01:01:32 +0100
committerDieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de>2008-03-23 01:01:32 +0100
commit78ffd15e485fe3ba341bf7d5e7479ff9a5a6de4b (patch)
tree76f900ca7235290c88a2fce69b451714de734bbf /tools.h
parent0f276e51c7dbf0e36baf35823f8b17163d094b39 (diff)
downloadvdr-plugin-live-78ffd15e485fe3ba341bf7d5e7479ff9a5a6de4b.tar.gz
vdr-plugin-live-78ffd15e485fe3ba341bf7d5e7479ff9a5a6de4b.tar.bz2
Some clean up in the timer editing call.
Prepeared timer edititing to be a popup like the epg-data. This is not finished yet and seems to have some problems with the form and the popup. So the overall functionality is disabled. Never the less some of the changes for this are of general interrest, so current work was commited. Changes in the styles for this.
Diffstat (limited to 'tools.h')
-rw-r--r--tools.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/tools.h b/tools.h
index 23142da..f4020ac 100644
--- a/tools.h
+++ b/tools.h
@@ -33,7 +33,6 @@ namespace vdrlive {
std::string StringRepeat(int times, const std::string& input);
std::string StringWordTruncate(const std::string& input, size_t maxLen, bool& truncated);
-
inline std::string StringWordTruncate(const std::string& input, size_t maxLen) { bool dummy; return StringWordTruncate(input, maxLen, dummy); }
std::string StringEscapeAndBreak( std::string const& input );
@@ -41,13 +40,11 @@ namespace vdrlive {
std::string StringFormatBreak(std::string const& input);
std::string StringTrim(const std::string& str);
-
std::string ZeroPad(int number);
std::string MD5Hash(std::string const& str);
time_t GetTimeT(std::string timestring);
-
std::string ExpandTimeString(std::string timestring);
std::string StringUrlEncode( std::string const& input );
@@ -55,9 +52,11 @@ namespace vdrlive {
std::string GetXMLValue( std::string const& xml, std::string const& element );
time_t GetDateFromDatePicker(std::string const& datestring, std::string const& format);
-
std::string DatePickerToC(time_t date, std::string const& format);
+ std::string EncodeDomId(std::string const & toEncode, char const * from = ".-:", char const * to = "pmc");
+ std::string DecodeDomId(std::string const & toDecode, char const * from = "pmc", char const * to = ".-:");
+
struct bad_lexical_cast: std::runtime_error
{
bad_lexical_cast(): std::runtime_error( "bad lexical cast" ) {}