Don't make wxWebRequest::SplitParameters() public
They're not necessary to use this class and we may consider exporting them later, possibly with a better API and more tests, if really needed. Also do change their API slightly by leaving only a single function and returning the value instead of using an out parameter for it to make it simpler to use.
This commit is contained in:
@@ -328,36 +328,6 @@ public:
|
||||
*/
|
||||
wxFileOffset GetBytesExpectedToReceive() const;
|
||||
///@}
|
||||
|
||||
/**
|
||||
Splits the given string into a value and a collection of parameters.
|
||||
Parameters are expected to be separated by semicolons.
|
||||
Enclosing quotes of parameter values are removed.
|
||||
|
||||
For example, the string
|
||||
@code
|
||||
multipart/mixed; boundary="MIME_boundary_01234567"
|
||||
@endcode
|
||||
is split into the value
|
||||
@code
|
||||
multipart/mixed
|
||||
@endcode
|
||||
and the parameter
|
||||
@code
|
||||
boundary -> MIME_boundary_01234567
|
||||
@endcode
|
||||
*/
|
||||
static void SplitParameters(const wxString& s, wxString& value,
|
||||
wxWebRequestHeaderMap& parameters);
|
||||
|
||||
/**
|
||||
Splits the given string into a collection of parameters.
|
||||
Parameters are expected to be separated by semicolons.
|
||||
|
||||
Enclosing quotes of parameter values are removed.
|
||||
*/
|
||||
static void SplitParameters(const wxString::const_iterator& begin,
|
||||
const wxString::const_iterator& end, wxWebRequestHeaderMap& parameters);
|
||||
};
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user