summaryrefslogtreecommitdiff
path: root/tools.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2008-01-13 11:26:30 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2008-01-13 11:26:30 +0100
commit0ec2063b5ad4a6b9574efa6365ac4bf026211e9d (patch)
tree79074c624baf92376cababeb26af52d2d288149b /tools.h
parentfe2568082a3a6df7d6b9fa88d83942fbd701c9b4 (diff)
downloadvdr-0ec2063b5ad4a6b9574efa6365ac4bf026211e9d.tar.gz
vdr-0ec2063b5ad4a6b9574efa6365ac4bf026211e9d.tar.bz2
Added cString::Truncate()
Diffstat (limited to 'tools.h')
-rw-r--r--tools.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools.h b/tools.h
index 1239176d..3c804b52 100644
--- a/tools.h
+++ b/tools.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: tools.h 1.109 2008/01/01 15:09:25 kls Exp $
+ * $Id: tools.h 1.110 2008/01/13 11:22:26 kls Exp $
*/
#ifndef __TOOLS_H
@@ -159,6 +159,7 @@ public:
operator const char * () const { return s; } // for use in (const char *) context
const char * operator*() const { return s; } // for use in (const void *) context (printf() etc.)
cString &operator=(const cString &String);
+ cString &Truncate(int Index); ///< Truncate the string at the given Index (if Index is < 0 it is counted from the end of the string).
static cString sprintf(const char *fmt, ...) __attribute__ ((format (printf, 1, 2)));
};