summaryrefslogtreecommitdiff
path: root/ACE/ace/String_Base.h
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/ace/String_Base.h')
-rw-r--r--ACE/ace/String_Base.h238
1 files changed, 119 insertions, 119 deletions
diff --git a/ACE/ace/String_Base.h b/ACE/ace/String_Base.h
index ae775c35dc3..55c2eb3f9a4 100644
--- a/ACE/ace/String_Base.h
+++ b/ACE/ace/String_Base.h
@@ -28,11 +28,11 @@
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
// Forward decl.
-template <class ACE_CHAR_T>
+template <class CHAR>
class ACE_String_Base_Iterator;
// Forward decl.
-template <class ACE_CHAR_T>
+template <class CHAR>
class ACE_String_Base_Const_Iterator;
/**
@@ -63,22 +63,22 @@ class ACE_String_Base_Const_Iterator;
* many STL class templates. If you find yourself casting you're
* probably doing something wrong.
*/
-template <class ACE_CHAR_T>
+template <class CHAR>
class ACE_String_Base : public ACE_String_Base_Const
{
public:
using ACE_String_Base_Const::size_type;
- friend class ACE_String_Base_Iterator <ACE_CHAR_T>;
- friend class ACE_String_Base_Const_Iterator <ACE_CHAR_T>;
+ friend class ACE_String_Base_Iterator <CHAR>;
+ friend class ACE_String_Base_Const_Iterator <CHAR>;
// ACE-style iterators
- typedef ACE_String_Base_Iterator <ACE_CHAR_T> ITERATOR;
- typedef ACE_String_Base_Const_Iterator <ACE_CHAR_T> CONST_ITERATOR;
+ typedef ACE_String_Base_Iterator <CHAR> ITERATOR;
+ typedef ACE_String_Base_Const_Iterator <CHAR> CONST_ITERATOR;
// STL-style iterators
- typedef ACE_String_Base_Iterator <ACE_CHAR_T> iterator;
- typedef ACE_String_Base_Const_Iterator <ACE_CHAR_T> const_iterator;
+ typedef ACE_String_Base_Iterator <CHAR> iterator;
+ typedef ACE_String_Base_Const_Iterator <CHAR> const_iterator;
/**
* Default constructor.
@@ -101,9 +101,9 @@ public:
* @param the_allocator ACE_Allocator associated with string
* @param release Allocator responsible(true)/not reponsible(false) for
* freeing memory.
- * @return ACE_String_Base containing const ACE_CHAR_T *s
+ * @return ACE_String_Base containing const CHAR *s
*/
- ACE_String_Base (const ACE_CHAR_T *s,
+ ACE_String_Base (const CHAR *s,
ACE_Allocator *the_allocator = 0,
bool release = true);
@@ -122,9 +122,9 @@ public:
* @param the_allocator ACE_Allocator associated with string
* @param release Allocator responsible(true)/not reponsible(false) for
* freeing memory.
- * @return ACE_String_Base containing const ACE_CHAR_T *s
+ * @return ACE_String_Base containing const CHAR *s
*/
- ACE_String_Base (const ACE_CHAR_T *s,
+ ACE_String_Base (const CHAR *s,
size_type len,
ACE_Allocator *the_allocator = 0,
bool release = true);
@@ -135,16 +135,16 @@ public:
* @param s Input ACE_String_Base string to copy
* @return Copy of input string @a s
*/
- ACE_String_Base (const ACE_String_Base < ACE_CHAR_T > &s);
+ ACE_String_Base (const ACE_String_Base < CHAR > &s);
/**
* Constructor that copies @a c into dynamically allocated memory.
*
* @param c Single input character.
* @param the_allocator ACE_Allocator associated with string
- * @return ACE_String_Base containing ACE_CHAR_T 'c'
+ * @return ACE_String_Base containing CHAR 'c'
*/
- ACE_String_Base (ACE_CHAR_T c, ACE_Allocator *the_allocator = 0);
+ ACE_String_Base (CHAR c, ACE_Allocator *the_allocator = 0);
/**
* Constructor that allocates a len long string.
@@ -160,7 +160,7 @@ public:
* @return Empty ACE_String_Base with room for len CHARs
*/
ACE_String_Base (size_type len,
- ACE_CHAR_T c = 0,
+ CHAR c = 0,
ACE_Allocator *the_allocator = 0);
/**
@@ -175,7 +175,7 @@ public:
* @param slot Index of the desired character
* @return The character at index @a slot
*/
- const ACE_CHAR_T & operator[] (size_type slot) const;
+ const CHAR & operator[] (size_type slot) const;
/**
* Return the <slot'th> character by reference in the string
@@ -184,15 +184,15 @@ public:
* @param slot Index of the desired character
* @return The character at index @a slot
*/
- ACE_CHAR_T & operator[] (size_type slot);
+ CHAR & operator[] (size_type slot);
/**
* Assignment operator (does copy memory).
*
- * @param s Input null-terminated ACE_CHAR_T string to assign to this object.
+ * @param s Input null-terminated CHAR string to assign to this object.
* @return Return a copy of the this string.
*/
- ACE_String_Base < ACE_CHAR_T > &operator = (const ACE_CHAR_T * s);
+ ACE_String_Base < CHAR > &operator = (const CHAR * s);
/**
* Assignment operator (does copy memory).
@@ -200,7 +200,7 @@ public:
* @param s Input ACE_String_Base string to assign to this object.
* @return Return a copy of the this string.
*/
- ACE_String_Base < ACE_CHAR_T > &operator = (const ACE_String_Base < ACE_CHAR_T > &s);
+ ACE_String_Base < CHAR > &operator = (const ACE_String_Base < CHAR > &s);
/**
* Assignment alternative method (does not copy memory).
@@ -208,7 +208,7 @@ public:
* @param s Input ACE_String_Base string to assign to this object.
* @return Return this string.
*/
- ACE_String_Base < ACE_CHAR_T > &assign_nocopy (const ACE_String_Base < ACE_CHAR_T > &s);
+ ACE_String_Base < CHAR > &assign_nocopy (const ACE_String_Base < CHAR > &s);
/**
* Copy @a s into this @a ACE_String_Base.
@@ -227,7 +227,7 @@ public:
* @param release Allocator responsible(true)/not reponsible(false) for
* freeing memory.
*/
- void set (const ACE_CHAR_T * s, bool release = true);
+ void set (const CHAR * s, bool release = true);
/**
* Copy @a len bytes of @a s (will zero terminate the result).
@@ -247,7 +247,7 @@ public:
* @param release Allocator responsible(true)/not reponsible(false) for
* freeing memory.
*/
- void set (const ACE_CHAR_T * s, size_type len, bool release);
+ void set (const CHAR * s, size_type len, bool release);
/**
* Clear this string. Memory is _not_ freed if @a release is false.
@@ -291,7 +291,7 @@ public:
* @param length How many characters to return starting at the offset.
* @return The string containing the desired substring
*/
- ACE_String_Base < ACE_CHAR_T > substring (size_type offset,
+ ACE_String_Base < CHAR > substring (size_type offset,
size_type length = npos) const;
/**
@@ -301,7 +301,7 @@ public:
* @param length How many characters to return starting at the offset.
* @return The string containing the desired substring
*/
- ACE_String_Base < ACE_CHAR_T > substr (size_type offset,
+ ACE_String_Base < CHAR > substr (size_type offset,
size_type length = npos) const;
/**
@@ -311,7 +311,7 @@ public:
* @return The combined string (input append to the end of the old). New
* string is zero terminated.
*/
- ACE_String_Base < ACE_CHAR_T > &operator += (const ACE_String_Base < ACE_CHAR_T > &s);
+ ACE_String_Base < CHAR > &operator += (const ACE_String_Base < CHAR > &s);
/**
* Concat operator (copies memory).
@@ -320,26 +320,26 @@ public:
* @return The combined string (input append to the end of the old). New
* string is zero terminated.
*/
- ACE_String_Base < ACE_CHAR_T >& operator += (const ACE_CHAR_T* s);
+ ACE_String_Base < CHAR >& operator += (const CHAR* s);
/**
* Concat operator (copies memory).
*
- * @param c Input ACE_CHAR_T to concatenate to this string.
+ * @param c Input CHAR to concatenate to this string.
* @return The combined string (input append to the end of the old). New
* string is zero terminated.
*/
- ACE_String_Base < ACE_CHAR_T >& operator += (const ACE_CHAR_T c);
+ ACE_String_Base < CHAR >& operator += (const CHAR c);
/**
* Append function (copies memory).
*
- * @param s Input ACE_CHAR_T array to concatenate to this string.
+ * @param s Input CHAR array to concatenate to this string.
* @param slen The length of the array.
* @return The combined string (input append to the end of the old). New
* string is zero terminated.
*/
- ACE_String_Base < ACE_CHAR_T >& append (const ACE_CHAR_T* s, size_type slen);
+ ACE_String_Base < CHAR >& append (const CHAR* s, size_type slen);
/**
* Returns a hash value for this string.
@@ -359,7 +359,7 @@ public:
* Return the number of allocated CHARs in the string object.
* This may be greater than the current length of the string.
*
- * @return Maximum number of ACE_CHAR_T units that can be stored, including
+ * @return Maximum number of CHAR units that can be stored, including
* any terminating nul that may be needed.
*/
size_t capacity (void) const;
@@ -386,7 +386,7 @@ public:
* @return Pointer reference to the string data. Returned string is
* zero terminated.
*/
- ACE_CHAR_T *rep (void) const;
+ CHAR *rep (void) const;
/**
* Get at the underlying representation directly!
@@ -397,12 +397,12 @@ public:
* that the string is zero terminated.
*
*/
- const ACE_CHAR_T *fast_rep (void) const;
+ const CHAR *fast_rep (void) const;
/**
* Same as STL String's <c_str> and <fast_rep>.
*/
- const ACE_CHAR_T *c_str (void) const;
+ const CHAR *c_str (void) const;
/**
* Comparison operator that will match substrings. Returns the
@@ -412,7 +412,7 @@ public:
* @return Integer index value of the first location of string @a s or
* @c npos (not found).
*/
- size_type strstr (const ACE_String_Base<ACE_CHAR_T> &s) const;
+ size_type strstr (const ACE_String_Base<CHAR> &s) const;
/**
* Find <str> starting at pos. Returns the slot of the first
@@ -423,7 +423,7 @@ public:
* @return Index value of the first location of string @a str else
* @c npos.
*/
- size_type find (const ACE_String_Base<ACE_CHAR_T> &str, size_type pos = 0) const;
+ size_type find (const ACE_String_Base<CHAR> &str, size_type pos = 0) const;
/**
* Find @a s starting at pos. Returns the slot of the first
@@ -434,7 +434,7 @@ public:
* @return Index value of the first location of string @a str else
* @c npos.
*/
- size_type find (const ACE_CHAR_T *s, size_type pos = 0) const;
+ size_type find (const CHAR *s, size_type pos = 0) const;
/**
* Find @a c starting at pos. Returns the slot of the first
@@ -445,7 +445,7 @@ public:
* @return Index value of the first location of string @a str else
* @c npos.
*/
- size_type find (ACE_CHAR_T c, size_type pos = 0) const;
+ size_type find (CHAR c, size_type pos = 0) const;
/**
* Find @a c starting at pos (counting from the end). Returns the
@@ -456,7 +456,7 @@ public:
* @return Index value of the first location of string @a str else
* @c npos.
*/
- size_type rfind (ACE_CHAR_T c, size_type pos = npos) const;
+ size_type rfind (CHAR c, size_type pos = npos) const;
/**
* Equality comparison operator (must match entire string).
@@ -464,7 +464,7 @@ public:
* @param s Input ACE_String_Base string to compare against stored string.
* @return @c true if equal, @c false otherwise.
*/
- bool operator == (const ACE_String_Base<ACE_CHAR_T> &s) const;
+ bool operator == (const ACE_String_Base<CHAR> &s) const;
/**
* Equality comparison operator (must match entire string).
@@ -472,7 +472,7 @@ public:
* @param s Null terminated string to compare against stored string.
* @return @c true if equal, @c false otherwise.
*/
- bool operator == (const ACE_CHAR_T *s) const;
+ bool operator == (const CHAR *s) const;
/**
* Less than comparison operator.
@@ -480,7 +480,7 @@ public:
* @param s Input ACE_String_Base string to compare against stored string.
* @return @c true if less than, @c false otherwise.
*/
- bool operator < (const ACE_String_Base<ACE_CHAR_T> &s) const;
+ bool operator < (const ACE_String_Base<CHAR> &s) const;
/**
* Greater than comparison operator.
@@ -488,7 +488,7 @@ public:
* @param s Input ACE_String_Base string to compare against stored string.
* @return @c true if greater than, @c false otherwise.
*/
- bool operator > (const ACE_String_Base<ACE_CHAR_T> &s) const;
+ bool operator > (const ACE_String_Base<CHAR> &s) const;
/**
* Inequality comparison operator.
@@ -496,7 +496,7 @@ public:
* @param s String to compare against stored string.
* @return @c true if not equal, @c false otherwise.
*/
- bool operator != (const ACE_String_Base<ACE_CHAR_T> &s) const;
+ bool operator != (const ACE_String_Base<CHAR> &s) const;
/**
* Inequality comparison operator.
@@ -504,7 +504,7 @@ public:
* @param s Null terminated string to compare against stored string.
* @return @c true if not equal, @c false otherwise.
*/
- bool operator != (const ACE_CHAR_T *s) const;
+ bool operator != (const CHAR *s) const;
/**
* Performs a strncmp comparison.
@@ -513,7 +513,7 @@ public:
* @return Integer value of result (less than 0, 0, greater than 0)
* depending on how input string @a s is to the stored string.
*/
- int compare (const ACE_String_Base<ACE_CHAR_T> &s) const;
+ int compare (const ACE_String_Base<CHAR> &s) const;
/**
* Dump the state of an object.
@@ -537,16 +537,16 @@ public:
* it doesn't fill the buffer, so is much faster.
*
* @param len The number of CHARs to reserve
- * @param c The ACE_CHAR_T to use when filling the string.
+ * @param c The CHAR to use when filling the string.
*/
- void resize (size_type len, ACE_CHAR_T c = 0);
+ void resize (size_type len, CHAR c = 0);
void fast_resize (size_t len);
/// Swap the contents of this @c ACE_String_Base with @a str.
/**
* @note This is non-throwing operation.
*/
- void swap (ACE_String_Base<ACE_CHAR_T> & str);
+ void swap (ACE_String_Base<CHAR> & str);
iterator begin (void);
const_iterator begin (void) const;
@@ -579,7 +579,7 @@ protected:
/**
* Pointer to data.
*/
- ACE_CHAR_T *rep_;
+ CHAR *rep_;
/**
* Flag that indicates if we own the memory
@@ -589,7 +589,7 @@ protected:
/**
* Represents the "NULL" string to simplify the internal logic.
*/
- static ACE_CHAR_T NULL_String_;
+ static CHAR NULL_String_;
};
/**
@@ -603,15 +603,15 @@ protected:
* category. Future versions of the class will support the operations
* of std::random_access_iterator_tag.
*/
-template <class ACE_CHAR_T>
+template <class CHAR>
class ACE_String_Base_Iterator
{
public:
// = std::iterator_traits typedefs/traits.
typedef std::bidirectional_iterator_tag iterator_category;
- typedef ACE_CHAR_T value_type;
- typedef ACE_CHAR_T & reference;
- typedef ACE_CHAR_T * pointer;
+ typedef CHAR value_type;
+ typedef CHAR & reference;
+ typedef CHAR * pointer;
typedef ptrdiff_t difference_type;
/**
@@ -619,14 +619,14 @@ public:
*
* @param[in] str Target string for iterator.
*/
- ACE_String_Base_Iterator (ACE_String_Base <ACE_CHAR_T> & str, int end = 0);
+ ACE_String_Base_Iterator (ACE_String_Base <CHAR> & str, int end = 0);
/**
* Copy constructor
*
* @param[in] iter Iterator to copy.
*/
- ACE_String_Base_Iterator (const ACE_String_Base_Iterator <ACE_CHAR_T> & iter);
+ ACE_String_Base_Iterator (const ACE_String_Base_Iterator <CHAR> & iter);
/// Destructor.
~ACE_String_Base_Iterator (void);
@@ -646,7 +646,7 @@ public:
* @retval 0 All characters have been seen.
* @retval 1 Items still remain to be seen.
*/
- int next (ACE_CHAR_T * & ch) const;
+ int next (CHAR * & ch) const;
/**
* Move to the next character in the string.
@@ -662,58 +662,58 @@ public:
* @param[in] iter Right-hand side of operator.
* @return Reference to self.
*/
- const ACE_String_Base_Iterator <ACE_CHAR_T> & operator = (const ACE_String_Base_Iterator <ACE_CHAR_T> & iter);
+ const ACE_String_Base_Iterator <CHAR> & operator = (const ACE_String_Base_Iterator <CHAR> & iter);
/**
* Dereference operator
*
* @return Reference to current character seen by iterator.
*/
- ACE_CHAR_T & operator * (void);
+ CHAR & operator * (void);
/**
* Prefix operator
*/
- ACE_String_Base_Iterator <ACE_CHAR_T> & operator ++ (void);
+ ACE_String_Base_Iterator <CHAR> & operator ++ (void);
/**
* Postfix operator
*/
- ACE_String_Base_Iterator <ACE_CHAR_T> operator ++ (int);
+ ACE_String_Base_Iterator <CHAR> operator ++ (int);
/**
* Prefix operator
*/
- ACE_String_Base_Iterator <ACE_CHAR_T> & operator -- (void);
+ ACE_String_Base_Iterator <CHAR> & operator -- (void);
/**
* Postfix operator
*/
- ACE_String_Base_Iterator <ACE_CHAR_T> operator -- (int);
+ ACE_String_Base_Iterator <CHAR> operator -- (int);
/**
* Eqaulity comparison operator
*
* @param[in] rhs Right-hand side of operator.
*/
- bool operator == (const ACE_String_Base_Iterator <ACE_CHAR_T> & rhs) const;
+ bool operator == (const ACE_String_Base_Iterator <CHAR> & rhs) const;
/**
* Ineqaulity comparison operator
*
* @param[in] rhs Right-hand side of operator.
*/
- bool operator != (const ACE_String_Base_Iterator <ACE_CHAR_T> & rhs) const;
+ bool operator != (const ACE_String_Base_Iterator <CHAR> & rhs) const;
- bool operator < (const ACE_String_Base_Iterator <ACE_CHAR_T> & rhs) const;
- bool operator > (const ACE_String_Base_Iterator <ACE_CHAR_T> & rhs) const;
+ bool operator < (const ACE_String_Base_Iterator <CHAR> & rhs) const;
+ bool operator > (const ACE_String_Base_Iterator <CHAR> & rhs) const;
- bool operator <= (const ACE_String_Base_Iterator <ACE_CHAR_T> & rhs) const;
- bool operator >= (const ACE_String_Base_Iterator <ACE_CHAR_T> & rhs) const;
+ bool operator <= (const ACE_String_Base_Iterator <CHAR> & rhs) const;
+ bool operator >= (const ACE_String_Base_Iterator <CHAR> & rhs) const;
private:
/// Target string to iterate over.
- ACE_String_Base <ACE_CHAR_T> * str_;
+ ACE_String_Base <CHAR> * str_;
/// Current location in the string.
size_t index_;
@@ -730,15 +730,15 @@ private:
* category. Future versions of the class will support the operations
* of std::random_access_iterator_tag.
*/
-template <class ACE_CHAR_T>
+template <class CHAR>
class ACE_String_Base_Const_Iterator
{
public:
// = std::iterator_traits typedefs/traits.
typedef std::bidirectional_iterator_tag iterator_category;
- typedef const ACE_CHAR_T value_type;
- typedef const ACE_CHAR_T & reference;
- typedef const ACE_CHAR_T * pointer;
+ typedef const CHAR value_type;
+ typedef const CHAR & reference;
+ typedef const CHAR * pointer;
typedef ptrdiff_t difference_type;
/**
@@ -746,14 +746,14 @@ public:
*
* @param[in] str Target string for iterator.
*/
- ACE_String_Base_Const_Iterator (const ACE_String_Base <ACE_CHAR_T> & str, int end = 0);
+ ACE_String_Base_Const_Iterator (const ACE_String_Base <CHAR> & str, int end = 0);
/**
* Copy constructor
*
* @param[in] iter Iterator to copy.
*/
- ACE_String_Base_Const_Iterator (const ACE_String_Base_Const_Iterator <ACE_CHAR_T> & iter);
+ ACE_String_Base_Const_Iterator (const ACE_String_Base_Const_Iterator <CHAR> & iter);
/// Destructor.
~ACE_String_Base_Const_Iterator (void);
@@ -773,7 +773,7 @@ public:
* @retval 0 All characters have been seen.
* @retval 1 Items still remain to be seen.
*/
- int next (const ACE_CHAR_T * & ch) const;
+ int next (const CHAR * & ch) const;
/**
* Move to the next character in the string.
@@ -789,88 +789,88 @@ public:
* @param[in] iter Right-hand side of operator.
* @return Reference to self.
*/
- const ACE_String_Base_Const_Iterator <ACE_CHAR_T> & operator = (const ACE_String_Base_Const_Iterator <ACE_CHAR_T> & iter);
+ const ACE_String_Base_Const_Iterator <CHAR> & operator = (const ACE_String_Base_Const_Iterator <CHAR> & iter);
/**
* Dereference operator
*
* @return Reference to current character seen by iterator.
*/
- const ACE_CHAR_T & operator * (void);
+ const CHAR & operator * (void);
/**
* Prefix operator
*/
- ACE_String_Base_Const_Iterator <ACE_CHAR_T> & operator ++ (void);
+ ACE_String_Base_Const_Iterator <CHAR> & operator ++ (void);
/**
* Postfix operator
*/
- ACE_String_Base_Const_Iterator <ACE_CHAR_T> operator ++ (int);
+ ACE_String_Base_Const_Iterator <CHAR> operator ++ (int);
/**
* Prefix operator
*/
- ACE_String_Base_Const_Iterator <ACE_CHAR_T> & operator -- (void);
+ ACE_String_Base_Const_Iterator <CHAR> & operator -- (void);
/**
* Postfix operator
*/
- ACE_String_Base_Const_Iterator <ACE_CHAR_T> operator -- (int);
+ ACE_String_Base_Const_Iterator <CHAR> operator -- (int);
/**
* Eqaulity comparison operator
*
* @param[in] rhs Right-hand side of operator.
*/
- bool operator == (const ACE_String_Base_Const_Iterator <ACE_CHAR_T> & rhs) const;
+ bool operator == (const ACE_String_Base_Const_Iterator <CHAR> & rhs) const;
/**
* Ineqaulity comparison operator
*
* @param[in] rhs Right-hand side of operator.
*/
- bool operator != (const ACE_String_Base_Const_Iterator <ACE_CHAR_T> & rhs) const;
+ bool operator != (const ACE_String_Base_Const_Iterator <CHAR> & rhs) const;
- bool operator < (const ACE_String_Base_Const_Iterator <ACE_CHAR_T> & rhs) const;
- bool operator > (const ACE_String_Base_Const_Iterator <ACE_CHAR_T> & rhs) const;
+ bool operator < (const ACE_String_Base_Const_Iterator <CHAR> & rhs) const;
+ bool operator > (const ACE_String_Base_Const_Iterator <CHAR> & rhs) const;
- bool operator <= (const ACE_String_Base_Const_Iterator <ACE_CHAR_T> & rhs) const;
- bool operator >= (const ACE_String_Base_Const_Iterator <ACE_CHAR_T> & rhs) const;
+ bool operator <= (const ACE_String_Base_Const_Iterator <CHAR> & rhs) const;
+ bool operator >= (const ACE_String_Base_Const_Iterator <CHAR> & rhs) const;
private:
/// Target string to iterate over.
- const ACE_String_Base <ACE_CHAR_T> * str_;
+ const ACE_String_Base <CHAR> * str_;
/// Current location in the string.
size_t index_;
};
-template < class ACE_CHAR_T >
- ACE_String_Base < ACE_CHAR_T > operator + (const ACE_String_Base < ACE_CHAR_T > &,
- const ACE_String_Base < ACE_CHAR_T > &);
-template < class ACE_CHAR_T >
- ACE_String_Base < ACE_CHAR_T > operator + (const ACE_String_Base < ACE_CHAR_T > &,
- const ACE_CHAR_T *);
-template < class ACE_CHAR_T >
- ACE_String_Base < ACE_CHAR_T > operator + (const ACE_CHAR_T *,
- const ACE_String_Base < ACE_CHAR_T > &);
-
-template < class ACE_CHAR_T >
- ACE_String_Base < ACE_CHAR_T > operator + (const ACE_String_Base < ACE_CHAR_T > &t,
- const ACE_CHAR_T c);
-
-template < class ACE_CHAR_T >
- ACE_String_Base < ACE_CHAR_T > operator + (const ACE_CHAR_T c,
- const ACE_String_Base < ACE_CHAR_T > &t);
-
-template <class ACE_CHAR_T>
- bool operator == (const ACE_CHAR_T *s,
- const ACE_String_Base<ACE_CHAR_T> &t);
-
-template <class ACE_CHAR_T>
- bool operator != (const ACE_CHAR_T *s,
- const ACE_String_Base<ACE_CHAR_T> &t);
+template < class CHAR >
+ ACE_String_Base < CHAR > operator + (const ACE_String_Base < CHAR > &,
+ const ACE_String_Base < CHAR > &);
+template < class CHAR >
+ ACE_String_Base < CHAR > operator + (const ACE_String_Base < CHAR > &,
+ const CHAR *);
+template < class CHAR >
+ ACE_String_Base < CHAR > operator + (const CHAR *,
+ const ACE_String_Base < CHAR > &);
+
+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);
+
+template <class CHAR>
+ bool operator == (const CHAR *s,
+ const ACE_String_Base<CHAR> &t);
+
+template <class CHAR>
+ bool operator != (const CHAR *s,
+ const ACE_String_Base<CHAR> &t);
ACE_END_VERSIONED_NAMESPACE_DECL