Contains a bounds-checked vector of RWMimeParameter objects.
More...
#include <rw/mime/RWMimeParameterList.h>
RWMimeParameterList contains a bounds-checked vector of RWMimeParameter objects.
◆ RWMimeParameterList() [1/2]
| RWMimeParameterList::RWMimeParameterList |
( |
void | | ) |
|
Default constructor. Constructs an empty parameter list.
◆ RWMimeParameterList() [2/2]
Copy constructor. Constructs a new list as a deep copy of second.
◆ ~RWMimeParameterList()
| RWMimeParameterList::~RWMimeParameterList |
( |
void | | ) |
|
◆ asString()
| RWCString RWMimeParameterList::asString |
( |
void | | ) |
const |
Returns a string representation of self. Throws RWMimeError if self cannot be represented as valid MIME. The RWCString should contain 7-bit US-ASCII data.
◆ findParameter()
| size_t RWMimeParameterList::findParameter |
( |
const RWCString & | name, |
|
|
size_t | start = 0 ) const |
Returns the index of the first parameter in the collection with a name matching name, or RW_NPOS if no parameter with that name is present. Begins searching at start. Uses a case-insensitive comparison to match name. The RWCString should contain 7-bit US-ASCII data.
◆ fromString()
| void RWMimeParameterList::fromString |
( |
const RWCString & | paramString | ) |
|
Parses paramString and populates self with the contents of paramString. Throws RWMimeParseError if the function cannot parse the contents of paramString. The RWCString should contain 7-bit US-ASCII data.
◆ getParameter()
◆ getParameterCount()
| size_t RWMimeParameterList::getParameterCount |
( |
void | | ) |
const |
Returns the total number of parameters in self.
◆ getParameterValue()
| RWCString RWMimeParameterList::getParameterValue |
( |
const RWCString & | name, |
|
|
size_t | start = 0 ) const |
Returns the value of the first parameter that contains a name matching name, or the empty string if no such parameter is present. Begins searching at start. Matches parameter names using a case-insensitive string comparison. The RWCString should contain 7-bit US-ASCII data.
◆ insertParameter()
| void RWMimeParameterList::insertParameter |
( |
const RWMimeParameter & | parameter | ) |
|
Inserts parameter at the end of self's parameter list.
◆ operator=()
Assignment operator. Makes self a deep copy of second.
◆ removeAllParameters()
| void RWMimeParameterList::removeAllParameters |
( |
void | | ) |
|
Removes all parameters from self.
◆ removeParameter()
| void RWMimeParameterList::removeParameter |
( |
size_t | position | ) |
|
◆ setParameterValue()
| void RWMimeParameterList::setParameterValue |
( |
const RWCString & | name, |
|
|
const RWCString & | value, |
|
|
size_t | start = 0 ) |
Changes the value of the first parameter that contains a name matching name to value. Begins searching at start. If no such parameter exists, creates a new parameter and inserts the new parameter into self's parameter list. Matches parameter names using a case-insensitive string comparison. The RWCString should contain 7-bit US-ASCII data.
◆ operator!=()
◆ operator==
Equality operator. Returns true if lhs and rhs are equal. Otherwise, returns false. Compares the number of parameters the objects contain, then compares each parameter in each object with the parameter of the same name in the other object. Uses a case-insensitive comparison for parameter name and a case-sensitive comparison for parameter value.