rwlogo
Rogue Wave Views 5.5.1

Rogue Wave Views
Foundation Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

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.
ostream & operator<< (ostream &ostr, const IlString &string)
 Output operator.
IlStringoperator<< (IlString &string, const char *cstring)
 Append operator.
IlStringoperator<< (IlString &string1, const IlString &string2)
 Append operator.
istream & operator>> (istream &istr, IlString &string)
 Input operator.

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:
string1 A constant reference to an IlString&.
string2 A 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*)
ostream & operator<< ( ostream &  ostr,
const IlString string 
)

Output operator.

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

Parameters:
ostr A reference to an ostream.
string A constant reference to an IlString.
Returns:
A reference to an ostream.
See also:
IlString::writeQuoted
operator>>(IL_STDPREF istream&, IlString&)
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:
string A reference to an IlString&.
cstring A 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&)
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:
string1 A reference to an IlString&.
string2 A 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*)
istream & operator>> ( istream &  istr,
IlString string 
)

Input operator.

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

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

© Copyright 2012, 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.