url_properties.inl

来自「ace开发环境 用来开发网络程序 其运用了设计模式、多平台、C++等多种知识」· INL 代码 · 共 204 行

INL
204
字号
// -*- C++ -*-//// $Id: URL_Properties.inl 73790 2006-07-27 20:43:46Z wotte $ACE_INLINE size_tACE_WString_Helper::size (const ACE_WString &wstr){  return (wstr.length () + 1) * sizeof (ACE_USHORT16);}ACE_INLINEACE_URL_Property::ACE_URL_Property (const char *name, const char *value)  : name_ (name),    value_ (value){}ACE_INLINEACE_URL_Property::ACE_URL_Property (const ACE_USHORT16 *name,				    const ACE_USHORT16 *value)  : name_ (name),    value_ (value){}ACE_INLINEACE_URL_Property::ACE_URL_Property (const ACE_URL_Property &p)  : name_ (p.name_),    value_ (p.value_){}ACE_INLINEACE_URL_Property::~ACE_URL_Property (void){}ACE_INLINE ACE_URL_Property &ACE_URL_Property::operator= (const ACE_URL_Property &rhs){  if (this != &rhs)    {      this->name_ = rhs.name_;      this->value_ = rhs.value_;    }  return *this;}ACE_INLINE boolACE_URL_Property::operator== (const ACE_URL_Property &rhs) const{  if (this == &rhs || this->name_ != rhs.name_ ||      this->value_ != rhs.value_)    return true;  else    return false;}ACE_INLINE boolACE_URL_Property::operator!= (const ACE_URL_Property &rhs) const{  return !(*this == rhs);}ACE_INLINE ACE_WString &ACE_URL_Property::name_rep (void){  return this->name_;}ACE_INLINE const ACE_WString &ACE_URL_Property::name (void) const{  return this->name_;}ACE_INLINE voidACE_URL_Property::name (const char *n){  this->name_ = ACE_WString (n);}ACE_INLINE voidACE_URL_Property::name (const ACE_USHORT16 *n){  this->name_ = ACE_WString (n);}ACE_INLINE ACE_WString &ACE_URL_Property::value_rep (void){  return this->value_;}ACE_INLINE const ACE_WString &ACE_URL_Property::value (void) const{  return this->value_;}ACE_INLINE voidACE_URL_Property::value (const char *v){  this->value_ = ACE_WString (v);}ACE_INLINE voidACE_URL_Property::value (const ACE_USHORT16 *v){  this->value_ = ACE_WString (v);}ACE_INLINE size_tACE_URL_Property::size (void) const{  size_t len = 2;    len += this->name_.length () + this->value_.length ();  return len * sizeof (ACE_USHORT16);}ACE_INLINEACE_URL_Offer::ACE_URL_Offer (const size_t size, const char *url)  : url_ (url),    prop_ (size){}ACE_INLINEACE_URL_Offer::ACE_URL_Offer (const ACE_URL_Offer &o)  : url_ (o.url_),    prop_ (o.prop_){}ACE_INLINEACE_URL_Offer::~ACE_URL_Offer (void){}ACE_INLINE ACE_URL_Offer &ACE_URL_Offer::operator= (const ACE_URL_Offer &rhs){  if (this != &rhs)    {      this->url_ = rhs.url_;      this->prop_ = rhs.prop_;    }  return *this;}ACE_INLINE boolACE_URL_Offer::operator== (const ACE_URL_Offer &rhs) const{  if (this == &rhs      && this->url_ == rhs.url_      && this->prop_ == rhs.prop_)    return true;  else    return false;}ACE_INLINE boolACE_URL_Offer::operator!= (const ACE_URL_Offer &rhs) const{  return !(*this == rhs);}ACE_INLINE ACE_WString &ACE_URL_Offer::url_rep (void){  return this->url_;}ACE_INLINE const ACE_WString &ACE_URL_Offer::url (void) const{  return this->url_;}ACE_INLINE voidACE_URL_Offer::url (const ACE_USHORT16 *url){  this->url_ = ACE_WString (url);}ACE_INLINE voidACE_URL_Offer::url (const char *url){  this->url_ = ACE_WString (url);}ACE_INLINE ACE_URL_Property_Seq &ACE_URL_Offer::url_properties (void){  return this->prop_;}ACE_INLINE voidACE_URL_Offer::url_properties (const ACE_URL_Property_Seq &prop){  this->prop_ = prop;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?