Google

Main Page   Class Hierarchy   Compound List   File List   Compound Members  

scfString Class Reference

This is a thin SCF wrapper around csString. More...

#include <scfstr.h>

Inheritance diagram for scfString:

iString iBase List of all members.

Public Methods

 scfString ()
 Create an empty scfString object.

 scfString (size_t iLength)
 Create an scfString object and reserve space for iLength characters.

 scfString (const iString &copy)
 Copy constructor.

 scfString (const char *copy)
 Yet another copy constructor.

virtual ~scfString ()
 Destroy a scfString object.

virtual void SetCapacity (size_t NewSize)
 Set string capacity to NewSize characters (plus one for ending NULL).

virtual void Truncate (size_t iPos)
 Truncate the string.

virtual void Reclaim ()
 Set string maximal capacity to current string length.

virtual iStringClone () const
 Get a copy of this string.

virtual char* GetData () const
 Get a pointer to ASCIIZ string.

virtual size_t Length () const
 Query string length.

virtual char& operator[] (size_t iPos)
 Get a reference to iPos'th character.

virtual void SetAt (size_t iPos, char iChar)
 Set characetr number iPos to iChar.

virtual char GetAt (size_t iPos) const
 Get character at position iPos.

virtual void Insert (size_t iPos, iString *iStr)
 Insert another string into this one at position iPos.

virtual void Overwrite (size_t iPos, iString *iStr)
 Overlay another string onto a part of this string.

virtual iStringAppend (const char *iStr, size_t iCount=(size_t)-1)
 Append an ASCIIZ string to this one (up to iCount characters).

virtual iStringAppend (const iString *iStr, size_t iCount=(size_t)-1)
 Append a string to this one (possibly iCount characters from the string).

virtual void Replace (const iString *iStr, size_t iCount=(size_t)-1)
 Replace contents of this string with the contents of another.

virtual bool Compare (const iString *iStr) const
 Check if two strings are equal.

virtual bool CompareNoCase (const iString *iStr) const
 Compare two strings ignoring case.


Public Attributes

 SCF_DECLARE_IBASE

Detailed Description

This is a thin SCF wrapper around csString.


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.2.5 written by Dimitri van Heesch, ©1997-2000