GStringPipe Class Reference

A version of GBytePipe for strings. Adds some special handling for strings. More...

#include <GContainers.h>

Inheritance diagram for GStringPipe:

GBytePipe GStream GDom

List of all members.

Public Member Functions

 GStringPipe (int PreAlloc=-1)
 Constructs the object.
virtual int Pop (char *Str, int BufSize)
 Removes a utf-8 line of text from the container.
virtual int Push (char *Str, int Len=-1)
 Inserts a utf-8 string into the container.
virtual int Push (char16 *Str, int Len=-1)
 Inserts a wide char string into the container.
char * NewStr ()
 Creates a null terminated utf-8 string out of the classes contents.
char16NewStrW ()
 Creates a null terminated wide character string out of the classes contents.


Detailed Description

A version of GBytePipe for strings. Adds some special handling for strings.

Constructor & Destructor Documentation

GStringPipe::GStringPipe ( int  PreAlloc = -1  )  [inline]

Constructs the object.

Parameters:
PreAlloc  Number of bytes to allocate per block.


Member Function Documentation

int GStringPipe::Pop ( char *  Str,
int  BufSize 
) [virtual]

Removes a utf-8 line of text from the container.

Parameters:
Str  The output buffer
BufSize  The size of the buffer

References GBytePipe::Block::Next, GBytePipe::Block::Ptr(), and GBytePipe::Block::Used.

int GStringPipe::Push ( char16 Str,
int  Len = -1 
) [virtual]

Inserts a wide char string into the container.

Parameters:
Str  The string
Len  The length in characters

References GBytePipe::Write().

int GStringPipe::Push ( char *  Str,
int  Len = -1 
) [virtual]

Inserts a utf-8 string into the container.

Parameters:
Str  The string
Len  The length in bytes

References GBytePipe::Write().

Referenced by GDragDropSource::CreateFileDrop(), GXmlTree::DecodeEntities(), LgiDecodeUri(), LgiEncodeUri(), GList::OnKey(), Html2::GHtml2::OnMouseClick(), GHtml::OnMouseClick(), and GProcess::Run().


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

Generated on Wed Dec 1 15:41:04 2010 for Lgi by  doxygen 1.5.7.1