SString.h File Reference

#include "ace/SStringfwd.h"
#include "ace/String_Base.h"
#include "ace/iosfwd.h"
#include "ace/SString.inl"

Include dependency graph for SString.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ACE_NS_WString
 This class retain the backward compatibility for ACE_Naming_Context and related classes. The only addition to ACE_WString is a very naive "wchar" to "char" conversion function. More...
class  ACE_SString
 A very Simple String ACE_SString class. This is not a general-purpose string class, and you should probably consider using ACE_CString is you don't understand why this class exists... More...
class  ACE_Tokenizer
 Tokenizer. More...
class  ACE_Tokenizer::Preserve_Entry
 Preserve Entry. More...
class  ACE_Tokenizer::Delimiter_Entry
 Delimiter Entry. More...
class  ACE_Auto_String_Free
 Simple class to automatically de-allocate strings. More...

Defines

#define ACE_DEFAULT_GROWSIZE   32

Typedefs

typedef ACE_CString ACE_TString

Functions

ACE_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_Export ACE_OSTREAM_TYPE & 
operator<< (ACE_OSTREAM_TYPE &, const ACE_CString &)
ACE_Export ACE_OSTREAM_TYPE & operator<< (ACE_OSTREAM_TYPE &, const ACE_WString &)
ACE_Export ACE_NS_WString operator+ (const ACE_NS_WString &, const ACE_NS_WString &)
ACE_Export ACE_OSTREAM_TYPE & operator<< (ACE_OSTREAM_TYPE &, const ACE_SString &)


Detailed Description

Id
SString.h 80826 2008-03-04 14:51:23Z wotte

Author:
Douglas C. Schmidt (schmidt@cs.wustl.edu)

Definition in file SString.h.


Define Documentation

#define ACE_DEFAULT_GROWSIZE   32

Definition at line 26 of file SString.h.


Typedef Documentation

typedef ACE_CString ACE_TString

Definition at line 256 of file SString.h.


Function Documentation

ACE_Export ACE_NS_WString operator+ ( const ACE_NS_WString ,
const ACE_NS_WString  
)

Definition at line 56 of file SString.inl.

00057 {
00058   ACE_NS_WString temp (s);
00059   temp += t;
00060   return temp;
00061 }

ACE_Export ACE_OSTREAM_TYPE& operator<< ( ACE_OSTREAM_TYPE &  ,
const ACE_SString  
)

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_Export ACE_OSTREAM_TYPE& operator<< ( ACE_OSTREAM_TYPE &  ,
const ACE_WString  
)

Definition at line 42 of file SString.cpp.

References ACE_String_Base< CHAR >::fast_rep().

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_Export ACE_OSTREAM_TYPE& operator<< ( ACE_OSTREAM_TYPE &  ,
const ACE_CString  
)

Definition at line 34 of file SString.cpp.

References ACE_String_Base< CHAR >::fast_rep().

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


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