diff options
author | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-02-01 10:01:52 +0000 |
---|---|---|
committer | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-02-01 10:01:52 +0000 |
commit | fa588f6bab7b72f0d6d49d7f5e6eff46eb04ebbb (patch) | |
tree | 6a146bd561aec0da75a9630185619a99dbd4b065 /ace/SString.h | |
parent | eda7bc28bba8d4649e95d489e50832ba2cc1e723 (diff) | |
download | ATCD-fa588f6bab7b72f0d6d49d7f5e6eff46eb04ebbb.tar.gz |
*** empty log message ***
Diffstat (limited to 'ace/SString.h')
-rw-r--r-- | ace/SString.h | 10 |
1 files changed, 10 insertions, 0 deletions
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 <len> ACE_USHORT16's of <s> into dynamically // allocated memory (will NUL terminate the result). + ACE_WString (size_t len, ACE_Allocator *allocator = 0); + // Constructor that dynamically allocates memory for <len> + 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 <len>, + // 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. |