SString.cpp File Reference

#include "ace/Malloc_T.h"
#include "ace/OS_Memory.h"
#include "ace/SString.h"
#include "ace/Auto_Ptr.h"
#include "ace/OS_NS_string.h"
#include "ace/Numeric_Limits.h"
#include "ace/streams.h"

Include dependency graph for SString.cpp:

Go to the source code of this file.

Functions

ACE_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_OSTREAM_TYPE & 
operator<< (ACE_OSTREAM_TYPE &os, const ACE_CString &cs)
ACE_OSTREAM_TYPE & operator<< (ACE_OSTREAM_TYPE &os, const ACE_WString &ws)
ACE_OSTREAM_TYPE & operator<< (ACE_OSTREAM_TYPE &os, const ACE_SString &ss)


Function Documentation

ACE_OSTREAM_TYPE& operator<< ( ACE_OSTREAM_TYPE &  os,
const ACE_SString ss 
)

Definition at line 56 of file SString.cpp.

References ACE_SString::fast_rep().

00057 {
00058   if (ss.fast_rep () != 0)
00059     os << ss.fast_rep ();
00060   return os;
00061 }

ACE_OSTREAM_TYPE& operator<< ( ACE_OSTREAM_TYPE &  os,
const ACE_WString ws 
)

Definition at line 42 of file SString.cpp.

00043 {
00044   // @@ Need to figure out how to print the "wide" string
00045   //    on platforms that don't support "wide" strings.
00046 #if defined (ACE_HAS_WCHAR)
00047   os << ACE_Wide_To_Ascii (ws.fast_rep ()).char_rep ();
00048 #else
00049   ACE_UNUSED_ARG (ws);
00050   os << "(*non-printable string*)";
00051 #endif
00052   return os;
00053 }

ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_OSTREAM_TYPE& operator<< ( ACE_OSTREAM_TYPE &  os,
const ACE_CString cs 
)

Definition at line 34 of file SString.cpp.

00035 {
00036   if (cs.fast_rep () != 0)
00037     os << cs.fast_rep ();
00038   return os;
00039 }


Generated on Tue Feb 2 17:34:05 2010 for ACE by  doxygen 1.4.7