From fa588f6bab7b72f0d6d49d7f5e6eff46eb04ebbb Mon Sep 17 00:00:00 2001 From: irfan Date: Sat, 1 Feb 1997 10:01:52 +0000 Subject: *** empty log message *** --- ace/SString.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'ace/SString.h') diff --git a/ace/SString.h b/ace/SString.h index 7e17cba8bee..3e1bc8c462b 100644 --- a/ace/SString.h +++ b/ace/SString.h @@ -212,6 +212,10 @@ public: // Constructor that copies ACE_USHORT16's of into dynamically // allocated memory (will NUL terminate the result). + ACE_WString (size_t len, ACE_Allocator *allocator = 0); + // Constructor that dynamically allocates memory for + 1 + // ACE_USHORT16 characters. The newly created memory is set memset to 0. + ACE_WString (const ACE_WString &s); // Copy constructor. @@ -262,6 +266,12 @@ public: static size_t wstrlen (const ACE_USHORT16 *); // Computes the length of a "0" terminated ACE_USHORT16 *. + void resize (size_t len); + // This method is designed for high-performance. Please use with + // care ;-) If the current size of the string is less than , + // the string is resized to the new length. The data is is zero'd + // out after this operation. + private: ACE_Allocator *allocator_; // Pointer to a memory allocator. -- cgit v1.2.1