next up previous contents
Next: operator+ Up: Operators Previous: operator=   Contents

operator+=

NAME

operator+=

PROTOTYPE

#include "CifString.h"

void CifString::operator+=(const CifString &s)
void CifString::operator+=(const char *s)
void CifString::operator+=(const char c)
void CifString::operator+=(const int c)
void CifString::operator+=(const long c)
void CifString::operator+=(const double c)

EXAMPLE

#include "CifString.h"
CifString a;

a="CifString";
a+=1;
PURPOSE

operator+=(const CifString &) Adds CifString s to the end of this string.
operator+=(const char *) Adds a null terminated string s onto the end of this string. The null byte isn't added.
operator+=(const char ) Adds a single character c to the end of the string.
operator+=(const int) Adds a null terminated string generated from c to the end of the string.
operator+=(const long) Adds a null terminated string generated from c to the end of the string.
operator+=(const double) Adds a to null terminated string generated from c the end of the string.

RECEIVES

operator+=(const CifString &)
s reference to a CifString
operator+=(const char *)
c null-terminated string
operator+=(const char)
c one character
operator+=(const int)
c integer value
operator+=(const long)
c long integer value
operator+=(const double)
c double value
RETURN VALUE

None

REMARKS

The string may grow if necessary and can be.


next up previous contents
Next: operator+ Up: Operators Previous: operator=   Contents
Olivera Tosic 2002-06-12