diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2008-01-13 11:26:30 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2008-01-13 11:26:30 +0100 |
commit | 0ec2063b5ad4a6b9574efa6365ac4bf026211e9d (patch) | |
tree | 79074c624baf92376cababeb26af52d2d288149b /tools.h | |
parent | fe2568082a3a6df7d6b9fa88d83942fbd701c9b4 (diff) | |
download | vdr-0ec2063b5ad4a6b9574efa6365ac4bf026211e9d.tar.gz vdr-0ec2063b5ad4a6b9574efa6365ac4bf026211e9d.tar.bz2 |
Added cString::Truncate()
Diffstat (limited to 'tools.h')
-rw-r--r-- | tools.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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))); }; |