/[winpt]/trunk/Src/StringBuffer.h
ViewVC logotype

Diff of /trunk/Src/StringBuffer.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 327 by twoaday, Fri Sep 25 15:53:21 2009 UTC revision 328 by twoaday, Fri Sep 25 16:07:38 2009 UTC
# Line 1  Line 1 
1  #ifndef __STRING_BUFFER_H  #ifndef __STRING_BUFFER_H
2  #define __STRING_BUFFER_H  #define __STRING_BUFFER_H
3    
4  /* Copyright (C) 2006, 2007 Timo Schulz  /* Copyright (C) 2006, 2007, 2009 Timo Schulz
5     Released under the GNU General Public License, Version 2. */     Released under the GNU General Public License, Version 2. */
6    
7  #define DEFSIZE 128  #define DEFSIZE 128
# Line 31  public: Line 31  public:
31      /* Create a buffer object with the given contents. */      /* Create a buffer object with the given contents. */
32      StringBuffer (const char *contents);      StringBuffer (const char *contents);
33    
34      /* Destructor which fres the used memory. */      /* Destructor which frees the used memory. */
35      ~StringBuffer ();      ~StringBuffer ();
36    
37      /* Overwrite buffer contents in a safe manner. */      /* Overwrite buffer contents in a safe manner. */
# Line 60  public: Line 60  public:
60    
61      /* Add a string to the buffer. */      /* Add a string to the buffer. */
62      void add (const char *val);      void add (const char *val);
63        
64        /* Add only @len bytes of @val. */
65        void add(const char *val, size_t len);
66    
67      /* Add an unsigned integer to the buffer. */      /* Add an unsigned integer to the buffer. */
68      void add (unsigned long val);      void add (unsigned long val);
# Line 80  public: Line 83  public:
83      StringBuffer& operator +=(unsigned long val);      StringBuffer& operator +=(unsigned long val);
84    
85      StringBuffer& operator +=(const char *val);      StringBuffer& operator +=(const char *val);
86        
87        StringBuffer& operator +=(char *);
88    
89      StringBuffer& operator +=(char val);      StringBuffer& operator +=(char val);
90    

Legend:
Removed from v.327  
changed lines
  Added in v.328

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26