Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

os::String Class Reference

String manipulation class. More...

#include <string.h>

List of all members.

Public Types

typedef std::string::iterator iterator
typedef std::string::const_iterator const_iterator
enum  { npos = -1 }

Public Methods

 String ()
 String (int nLen, char nFiller)
 String (const char *pzString)
 String (const char *pzString, int nLen)
 String (const std::string &cString)
 String (const std::string &cString, int nPos, int nLen)
 String (const String &cString)
 String (const String &cString, int nPos, int nLen)
 String (const_iterator cBegin, const_iterator cEnd)
size_t Length () const
size_t CountChars () const
String & Resize (int nNewLen)
String & Format (const char *pzFormat, va_list pArgs)
String & Format (const char *pzFormat,...)
String & Strip ()
String & LStrip ()
String & RStrip ()
String & Lower ()
String & Upper ()
int Compare (const char *pzString) const
int Compare (const std::string &cOther) const
int Compare (const String &cOther) const
int CompareNoCase (const char *pzString) const
int CompareNoCase (const std::string &cOther) const
int CompareNoCase (const String &cOther) const
String & operator= (const char *pzString)
String & operator= (const std::string &cString)
String & operator= (const String &cString)
String & operator+= (const char *pzString)
String & operator+= (const std::string &cString)
String & operator+= (const String &cString)
String operator+ (const char *pzString)
String operator+ (const std::string &cString)
String operator+ (const String &cString)
bool operator== (const char *pzString) const
bool operator== (const std::string &cString) const
bool operator== (const String &cString) const
bool operator< (const char *pzString) const
bool operator< (const std::string &cString) const
bool operator< (const String &cString) const
bool operator> (const char *pzString) const
bool operator> (const std::string &cString) const
bool operator> (const String &cString) const
char operator[] (size_t nPos) const
char & operator[] (size_t nPos)
 operator const std::string & () const
std::string & str ()
const char * c_str () const
iterator begin ()
iterator end ()
const_iterator begin () const
const_iterator end () const
size_t size () const
bool empty () const
void resize (size_t nLen)
void resize (size_t nLen, char nFiller)
void reserve (size_t nLen)
String & erase (size_t nPos=0, size_t nLen=npos)
iterator erase (iterator i)
iterator erase (iterator cFirst, iterator cLast)


Detailed Description

Description:
The os::String class let you store and manipulate UTF8 strings and can be used interchangably with the std::string class.

It use an std::string object for storage so casting an os::String to a std::string referrence is very efficient. It simply return a reference to the internal std::string.

Author:
Kurt Skauen ([email protected])


Member Typedef Documentation

typedef std::string::const_iterator os::String::const_iterator
 

typedef std::string::iterator os::String::iterator
 


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
npos  


Constructor & Destructor Documentation

String::String
 

String::String int nLen,
char nFiller
 

String::String const char * pzString
 

String::String const char * pzString,
int nLen
 

String::String const std::string & cString
 

String::String const std::string & cString,
int nPos,
int nLen
 

String::String const String & cString
 

String::String const String & cString,
int nPos,
int nLen
 

String::String const_iterator cBegin,
const_iterator cEnd
 


Member Function Documentation

int String::Compare const String & cOther const
 

int String::Compare const std::string & cOther const
 

int String::Compare const char * pzString const
 

int String::CompareNoCase const String & cOther const
 

int String::CompareNoCase const std::string & cOther const
 

int String::CompareNoCase const char * pzString const
 

size_t String::CountChars const
 

String & String::Format const char * pzFormat,
...
 

String & String::Format const char * pzFormat,
va_list pArgs
 

String & String::LStrip
 

size_t String::Length const
 

String & String::Lower
 

String & String::RStrip
 

String& os::String::Resize int nNewLen
 

String & String::Strip
 

String & String::Upper
 

String::const_iterator String::begin const
 

String::iterator String::begin
 

const char * String::c_str const
 

bool String::empty const
 

String::const_iterator String::end const
 

String::iterator String::end
 

String::iterator String::erase iterator cFirst,
iterator cLast
 

String::iterator String::erase iterator i
 

String & String::erase size_t nPos = 0,
size_t nLen = npos
 

String::operator const std::string & const
 

String String::operator+ const String & cString
 

String String::operator+ const std::string & cString
 

String String::operator+ const char * pzString
 

String & String::operator+= const String & cString
 

String & String::operator+= const std::string & cString
 

String & String::operator+= const char * pzString
 

bool String::operator< const String & cString const
 

bool String::operator< const std::string & cString const
 

bool String::operator< const char * pzString const
 

String & String::operator= const String & cString
 

String & String::operator= const std::string & cString
 

String & String::operator= const char * pzString
 

bool String::operator== const String & cString const
 

bool String::operator== const std::string & cString const
 

bool String::operator== const char * pzString const
 

bool String::operator> const String & cString const
 

bool String::operator> const std::string & cString const
 

bool String::operator> const char * pzString const
 

char & String::operator[] size_t nPos
 

char String::operator[] size_t nPos const
 

void String::reserve size_t nLen
 

void String::resize size_t nLen,
char nFiller
 

void String::resize size_t nLen
 

size_t String::size const
 

std::string & String::str
 


Generated at Tue Sep 11 15:27:54 2001 for AtheOS higlevel API by doxygen1.2.9.1 written by Dimitri van Heesch, © 1997-2001