String_Base.cpp File Reference

#include "ace/ACE.h"
#include "ace/Malloc_Base.h"
#include "ace/String_Base.h"
#include "ace/Auto_Ptr.h"
#include "ace/OS_NS_string.h"
#include <algorithm>
Include dependency graph for String_Base.cpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<class CHAR >
ACE_String_Base< CHAR > operator+ (const ACE_String_Base< CHAR > &s, const ACE_String_Base< CHAR > &t)
template<class CHAR >
ACE_String_Base< CHAR > operator+ (const CHAR *s, const ACE_String_Base< CHAR > &t)
template<class CHAR >
ACE_String_Base< CHAR > operator+ (const ACE_String_Base< CHAR > &s, const CHAR *t)
template<class CHAR >
ACE_String_Base< CHAR > operator+ (const ACE_String_Base< CHAR > &t, const CHAR c)
template<class CHAR >
ACE_String_Base< CHAR > operator+ (const CHAR c, const ACE_String_Base< CHAR > &t)

Function Documentation

template<class CHAR >
ACE_String_Base<CHAR> operator+ ( const CHAR  c,
const ACE_String_Base< CHAR > &  t 
) [inline]

Definition at line 625 of file String_Base.cpp.

00627 {
00628   ACE_String_Base<CHAR> temp (t.length () + 1);
00629   temp += c;
00630   temp += t;
00631   return temp;
00632 }

template<class CHAR >
ACE_String_Base<CHAR> operator+ ( const ACE_String_Base< CHAR > &  t,
const CHAR  c 
) [inline]

Definition at line 615 of file String_Base.cpp.

00617 {
00618   ACE_String_Base<CHAR> temp (t.length () + 1);
00619   temp += t;
00620   temp += c;
00621   return temp;
00622 }

template<class CHAR >
ACE_String_Base<CHAR> operator+ ( const ACE_String_Base< CHAR > &  s,
const CHAR *  t 
) [inline]

Definition at line 602 of file String_Base.cpp.

00603 {
00604   size_t tlen = 0;
00605   if (t != 0)
00606     tlen = ACE_OS::strlen (t);
00607   ACE_String_Base<CHAR> temp (s.length () + tlen);
00608   temp += s;
00609   if (tlen > 0)
00610     temp.append (t, tlen);
00611   return temp;
00612 }

template<class CHAR >
ACE_String_Base<CHAR> operator+ ( const CHAR *  s,
const ACE_String_Base< CHAR > &  t 
) [inline]

Definition at line 589 of file String_Base.cpp.

00590 {
00591   size_t slen = 0;
00592   if (s != 0)
00593     slen = ACE_OS::strlen (s);
00594   ACE_String_Base<CHAR> temp (slen + t.length ());
00595   if (slen > 0)
00596     temp.append (s, slen);
00597   temp += t;
00598   return temp;
00599 }

template<class CHAR >
ACE_String_Base<CHAR> operator+ ( const ACE_String_Base< CHAR > &  s,
const ACE_String_Base< CHAR > &  t 
) [inline]

Definition at line 580 of file String_Base.cpp.

00581 {
00582   ACE_String_Base<CHAR> temp (s.length () + t.length ());
00583   temp += s;
00584   temp += t;
00585   return temp;
00586 }

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Sun Nov 22 23:12:49 2009 for ACE by  doxygen 1.6.1