BufStr Class Reference

Buffer used to store strings. More...

#include <bufstr.h>

List of all members.

Public Member Functions

 BufStr (int size)
 ~BufStr ()
void addChar (char c)
void addArray (const char *a, int len)
void skip (uint s)
void shrink (uint newlen)
void resize (uint newlen)
char * data () const
char & at (uint i) const
bool isEmpty () const
 operator const char * () const
uint curPos () const


Detailed Description

Buffer used to store strings.

This buffer is used append characters and strings. It will automatically resize itself, yet provide efficient random access to the content.

Definition at line 30 of file bufstr.h.


Constructor & Destructor Documentation

BufStr::BufStr ( int  size  )  [inline]

Definition at line 33 of file bufstr.h.

BufStr::~BufStr (  )  [inline]

Definition at line 38 of file bufstr.h.


Member Function Documentation

void BufStr::addChar ( char  c  )  [inline]

Definition at line 42 of file bufstr.h.

void BufStr::addArray ( const char *  a,
int  len 
) [inline]

Definition at line 47 of file bufstr.h.

Referenced by copyAndFilterFile().

void BufStr::skip ( uint  s  )  [inline]

Definition at line 53 of file bufstr.h.

Referenced by copyAndFilterFile().

void BufStr::shrink ( uint  newlen  )  [inline]

Definition at line 58 of file bufstr.h.

References resize().

Referenced by copyAndFilterFile().

void BufStr::resize ( uint  newlen  )  [inline]

Definition at line 63 of file bufstr.h.

Referenced by shrink().

char* BufStr::data (  )  const [inline]

Definition at line 72 of file bufstr.h.

Referenced by copyAndFilterFile(), and preprocessFile().

char& BufStr::at ( uint  i  )  const [inline]

Definition at line 76 of file bufstr.h.

bool BufStr::isEmpty (  )  const [inline]

Definition at line 80 of file bufstr.h.

BufStr::operator const char * (  )  const [inline]

Definition at line 84 of file bufstr.h.

uint BufStr::curPos (  )  const [inline]

Definition at line 88 of file bufstr.h.

Referenced by preprocessFile().


The documentation for this class was generated from the following file:



Generated on Mon Mar 31 10:58:56 2008 by  doxygen 1.5.1