3 ACE_WString_Helper::size (const ACE_WString &wstr)
5 return (wstr.length () + 1) * sizeof (ACE_UINT16);
9 ACE_URL_Property::ACE_URL_Property (const char *name, const char *value)
16 ACE_URL_Property::ACE_URL_Property (const ACE_UINT16 *name,
17 const ACE_UINT16 *value)
24 ACE_URL_Property::ACE_URL_Property (const ACE_URL_Property &p)
31 ACE_URL_Property::~ACE_URL_Property ()
35 ACE_INLINE ACE_URL_Property &
36 ACE_URL_Property::operator= (const ACE_URL_Property &rhs)
40 this->name_ = rhs.name_;
41 this->value_ = rhs.value_;
47 ACE_URL_Property::operator== (const ACE_URL_Property &rhs) const
49 if (this == &rhs || this->name_ != rhs.name_ ||
50 this->value_ != rhs.value_)
57 ACE_URL_Property::operator!= (const ACE_URL_Property &rhs) const
59 return !(*this == rhs);
62 ACE_INLINE ACE_WString &
63 ACE_URL_Property::name_rep ()
68 ACE_INLINE const ACE_WString &
69 ACE_URL_Property::name () const
75 ACE_URL_Property::name (const char *n)
77 this->name_ = ACE_WString (n);
81 ACE_URL_Property::name (const ACE_UINT16 *n)
83 this->name_ = ACE_WString (n);
86 ACE_INLINE ACE_WString &
87 ACE_URL_Property::value_rep ()
92 ACE_INLINE const ACE_WString &
93 ACE_URL_Property::value () const
99 ACE_URL_Property::value (const char *v)
101 this->value_ = ACE_WString (v);
105 ACE_URL_Property::value (const ACE_UINT16 *v)
107 this->value_ = ACE_WString (v);
112 ACE_URL_Property::size () const
115 len += this->name_.length () + this->value_.length ();
116 return len * sizeof (ACE_UINT16);
120 ACE_URL_Offer::ACE_URL_Offer (const size_t size, const char *url)
127 ACE_URL_Offer::ACE_URL_Offer (const ACE_URL_Offer &o)
134 ACE_URL_Offer::~ACE_URL_Offer ()
138 ACE_INLINE ACE_URL_Offer &
139 ACE_URL_Offer::operator= (const ACE_URL_Offer &rhs)
143 this->url_ = rhs.url_;
144 this->prop_ = rhs.prop_;
150 ACE_URL_Offer::operator== (const ACE_URL_Offer &rhs) const
153 && this->url_ == rhs.url_
154 && this->prop_ == rhs.prop_)
161 ACE_URL_Offer::operator!= (const ACE_URL_Offer &rhs) const
163 return !(*this == rhs);
166 ACE_INLINE ACE_WString &
167 ACE_URL_Offer::url_rep ()
172 ACE_INLINE const ACE_WString &
173 ACE_URL_Offer::url () const
179 ACE_URL_Offer::url (const ACE_UINT16 *url)
181 this->url_ = ACE_WString (url);
185 ACE_URL_Offer::url (const char *url)
187 this->url_ = ACE_WString (url);
190 ACE_INLINE ACE_URL_Property_Seq &
191 ACE_URL_Offer::url_properties ()
197 ACE_URL_Offer::url_properties (const ACE_URL_Property_Seq &prop)