summaryrefslogtreecommitdiff
path: root/trunk/TAO/tao/CORBA_String.inl
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/TAO/tao/CORBA_String.inl')
-rw-r--r--trunk/TAO/tao/CORBA_String.inl23
1 files changed, 23 insertions, 0 deletions
diff --git a/trunk/TAO/tao/CORBA_String.inl b/trunk/TAO/tao/CORBA_String.inl
new file mode 100644
index 00000000000..daeecf0628c
--- /dev/null
+++ b/trunk/TAO/tao/CORBA_String.inl
@@ -0,0 +1,23 @@
+// -*- C++ -*-
+//
+// $Id$
+
+#include "ace/OS_NS_string.h"
+
+TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+
+ACE_INLINE bool
+TAO::String_Var_Equal_To::operator() (CORBA::String_var const & lhs,
+ CORBA::String_var const & rhs) const
+{
+ return (ACE_OS::strcmp (lhs.in (), rhs.in ()) == 0);
+}
+
+ACE_INLINE bool
+TAO::String_Var_Equal_To::operator() (CORBA::WString_var const & lhs,
+ CORBA::WString_var const & rhs) const
+{
+ return (ACE_OS::strcmp (lhs.in (), rhs.in ()) == 0);
+}
+
+TAO_END_VERSIONED_NAMESPACE_DECL