diff options
author | Chris Cleeland <chris.cleeland@gmail.com> | 1998-01-08 19:44:35 +0000 |
---|---|---|
committer | Chris Cleeland <chris.cleeland@gmail.com> | 1998-01-08 19:44:35 +0000 |
commit | 7ef5018cb133cab34554cdf51c900ad5de03ab69 (patch) | |
tree | 6e3dd60037987773f1dd21dfd068fccc1496bfbd | |
parent | 4c24e4c6f0da0fa88f601679bb7cfb1394dcb956 (diff) | |
download | ATCD-7ef5018cb133cab34554cdf51c900ad5de03ab69.tar.gz |
* tao/corbacom.i (wstring_dup): Added this, which simply calls
wstring_copy(). Of course, I can't find any mention of EITHER of
these functions in the 2.0 or 2.1 spec, but what good are wstrings
if you can't make copies? Plus, Irfan really wanted it.
-rw-r--r-- | TAO/ChangeLog-98c | 7 | ||||
-rw-r--r-- | TAO/tao/corbacom.h | 1 | ||||
-rw-r--r-- | TAO/tao/corbacom.i | 11 |
3 files changed, 19 insertions, 0 deletions
diff --git a/TAO/ChangeLog-98c b/TAO/ChangeLog-98c index 3ac6eb287af..6f9c67ce2fa 100644 --- a/TAO/ChangeLog-98c +++ b/TAO/ChangeLog-98c @@ -1,3 +1,10 @@ +Thu Jan 8 12:53:28 1998 Chris Cleeland <cleeland@cs.wustl.edu> + + * tao/corbacom.i (wstring_dup): Added this, which simply calls + wstring_copy(). Of course, I can't find any mention of EITHER of + these functions in the 2.0 or 2.1 spec, but what good are wstrings + if you can't make copies? Plus, Irfan really wanted it. + Thu Jan 08 00:14:56 1998 <coryan@MILONGA> * orbsvcs/orbsvcs.dsw: diff --git a/TAO/tao/corbacom.h b/TAO/tao/corbacom.h index 273a02d57d2..095b97151e4 100644 --- a/TAO/tao/corbacom.h +++ b/TAO/tao/corbacom.h @@ -411,6 +411,7 @@ public: static WString wstring_alloc (ULong len); static WString wstring_copy (const WChar *const); + static WString wstring_dup (const WChar *const); static void wstring_free (WChar *const); // various CORBA defined classes diff --git a/TAO/tao/corbacom.i b/TAO/tao/corbacom.i index 63c2432271f..5de6980238c 100644 --- a/TAO/tao/corbacom.i +++ b/TAO/tao/corbacom.i @@ -188,3 +188,14 @@ CORBA::String_out::ptr (void) { return this->ptr_; } + +// ---------------------------------------------------------------------- +// Wide strings +// ---------------------------------------------------------------------- + +ACE_INLINE TAO_Export CORBA::WString +CORBA::wstring_dup (const WChar *const str) +{ + return CORBA::wstring_copy (str); +} + |