Classes | Defines | Typedefs | Functions

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_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_Export ACE_OSTREAM_TYPE & operator<< (ACE_OSTREAM_TYPE &, const ACE_CString &)
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 91058 2010-07-12 08:20:09Z johnnyw
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

Definition at line 262 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.

{
  ACE_NS_WString temp (s);
  temp += t;
  return temp;
}

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

Definition at line 53 of file SString.cpp.

{
  if (ss.fast_rep () != 0)
    os << ss.fast_rep ();
  return os;
}

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

Definition at line 39 of file SString.cpp.

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

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines