CrystalSpace

Public API Reference

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

csutil/csstring.h File Reference

String utility class. More...

#include <stdarg.h>
#include <ctype.h>
#include "csextern.h"
#include "snprintf.h"

Go to the source code of this file.

Compounds

class  csString
 This is a string class with a range of useful operators and type-safe overloads. More...


Functions

csString operator+ (const char *iStr1, const csString &iStr2)
 Concatenate a null-terminated C-string with a csString.

csString operator+ (const csString &iStr1, const char *iStr2)
 Concatenate a csString with a null-terminated C-string.


Detailed Description

String utility class.

Definition in file csstring.h.


Define Documentation

#define STR_APPEND TYPE,
FMT,
SZ   
 

Value:

csString& Append(TYPE n) \
  { char s[SZ]; cs_snprintf(s, SZ, FMT, n); return Append(s); }

Definition at line 356 of file csstring.h.


Function Documentation

csString operator+ const csString   iStr1,
const char *    iStr2
[inline]
 

Concatenate a csString with a null-terminated C-string.

Definition at line 854 of file csstring.h.

References csString::Append(), and csString::Clone().

csString operator+ const char *    iStr1,
const csString   iStr2
[inline]
 

Concatenate a null-terminated C-string with a csString.

Definition at line 848 of file csstring.h.

References csString::Append().

csString& operator<< csString   s,
bool    v
[inline]
 

Shift operator.

For example: \example s << "Hi " << name << "; see " << foo; \endexample

Definition at line 882 of file csstring.h.

csString& operator<< csString   s,
double    v
[inline]
 

Shift operator.

For example: \example s << "Hi " << name << "; see " << foo; \endexample

Definition at line 880 of file csstring.h.

csString& operator<< csString   s,
float    v
[inline]
 

Shift operator.

For example: \example s << "Hi " << name << "; see " << foo; \endexample

Definition at line 879 of file csstring.h.

csString& operator<< csString   s,
unsigned long    v
[inline]
 

Shift operator.

For example: \example s << "Hi " << name << "; see " << foo; \endexample

Definition at line 878 of file csstring.h.

csString& operator<< csString   s,
long    v
[inline]
 

Shift operator.

For example: \example s << "Hi " << name << "; see " << foo; \endexample

Definition at line 877 of file csstring.h.

csString& operator<< csString   s,
unsigned int    v
[inline]
 

Shift operator.

For example: \example s << "Hi " << name << "; see " << foo; \endexample

Definition at line 876 of file csstring.h.

csString& operator<< csString   s,
int    v
[inline]
 

Shift operator.

For example: \example s << "Hi " << name << "; see " << foo; \endexample

Definition at line 875 of file csstring.h.

csString& operator<< csString   s,
unsigned short    v
[inline]
 

Shift operator.

For example: \example s << "Hi " << name << "; see " << foo; \endexample

Definition at line 874 of file csstring.h.

csString& operator<< csString   s,
short    v
[inline]
 

Shift operator.

For example: \example s << "Hi " << name << "; see " << foo; \endexample

Definition at line 873 of file csstring.h.

csString& operator<< csString   s,
unsigned char    v
[inline]
 

Shift operator.

For example: \example s << "Hi " << name << "; see " << foo; \endexample

Definition at line 872 of file csstring.h.

csString& operator<< csString   s,
char    v
[inline]
 

Shift operator.

For example: \example s << "Hi " << name << "; see " << foo; \endexample

Definition at line 871 of file csstring.h.

csString& operator<< csString   s,
const char *    v
[inline]
 

Shift operator.

For example: \example s << "Hi " << name << "; see " << foo; \endexample

Definition at line 870 of file csstring.h.

csString& operator<< csString   s,
const csString   v
[inline]
 

Shift operator.

For example: \example s << "Hi " << name << "; see " << foo; \endexample

Definition at line 869 of file csstring.h.


Generated for Crystal Space by doxygen 1.2.18