rwlogo

Rogue Wave Views
Foundation Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

Classes | Functions
ifc/include.doc/ilog/string.h File Reference
#include <ilog/macros.h>
#include <ilog/iostream.h>
#include <stddef.h>

Classes

class  IlString
 Class that manages strings in single or multibytes. More...
 

Functions

IlString operator+ (const IlString &string1, const IlString &string2)
 Concatenation operator. More...
 
IlStringoperator<< (IlString &string1, const IlString &string2)
 Append operator. More...
 
IlStringoperator<< (IlString &string, const char *cstring)
 Append operator. More...
 
ostream & operator<< (ostream &ostr, const IlString &string)
 Output operator. More...
 
istream & operator>> (istream &istr, IlString &string)
 Input operator. More...
 

Detailed Description

[library ilog ilog/string.h] Declaration of the IlString class and some utilities.

Function Documentation

IlString operator+ ( const IlString string1,
const IlString string2 
)

Concatenation operator.

This operator concatenates the two strings string1 and string2 into a new one that is returned.

Parameters
string1A constant reference to an IlString&.
string2A constant reference to an IlString&.
Returns
An IlString object.
See Also
IlString::operator+=(const IlString&)
IlString::catenate
IlString::operator<<(IlString&, const IlString&)
IlString::operator<<(IlString&, const char*)
IlString& operator<< ( IlString string1,
const IlString string2 
)

Append operator.

This operator concatenates the two strings string1 and string2 into the first one that is returned.

Parameters
string1A reference to an IlString&.
string2A constant reference to an IlString&.
Returns
A reference to the first IlString& parameter.
See Also
IlString::operator+=(const IlString&)
IlString::catenate
operator+(IlString&, const IlString&)
operator<<(IlString&, const char*)
IlString& operator<< ( IlString string,
const char *  cstring 
)

Append operator.

This operator concatenates the C-style string cstring to string and returns this latter one.

Parameters
stringA reference to an IlString&.
cstringA constant pointer to a C-style string.
Returns
A reference to the IlString& parameter.
See Also
IlString::operator+=(const IlString&)
IlString::catenate
operator+(IlString&, const IlString&)
operator<<(IlString&, const IlString&)
ostream& operator<< ( ostream &  ostr,
const IlString string 
)

Output operator.

This operator writes to the output stream ostr a representation of the string string.

Parameters
ostrA reference to an ostream.
stringA constant reference to an IlString.
Returns
A reference to an ostream.
See Also
IlString::writeQuoted
operator>>(IL_STDPREF istream&, IlString&)
istream& operator>> ( istream &  istr,
IlString string 
)

Input operator.

This operator reads from the output stream istr a representation of the string string.

Parameters
istrA reference to an istream.
stringA reference to an IlString.
Returns
A reference to the given input stream.
See Also
IlString::readQuoted
operator<<(IL_STDPREF ostream&, const IlString&) const

© Copyright 2014, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.