nlib
|
The class for creating URI queries. More...
#include "nn/nlib/Uri.h"
Public Member Functions | |
errno_t | Append (const char *key, const char *value) noexcept |
Encodes a provided pair of a key and value and appends it to the query string. More... | |
const char * | c_str () const noexcept |
Returns the encoded query string. | |
operator const char * () const noexcept | |
Returns the encoded query string. | |
std::pair< const char *, const char * > | GetData () const noexcept |
Returns the beginning and end of the encoded query string. | |
Constructor, Destructor, and Initialization | |
UriQueryEncoder () noexcept | |
Instantiates the object with default parameters (default constructor). | |
The class for creating URI queries.
N | The size of the buffer to store the encoded query string. |
Uri::SetQuery()
function. The size of the internal buffer can be specified using the template parameter.
|
noexcept |
Encodes a provided pair of a key and value and appends it to the query string.
[in] | key | Query string key. |
[in] | value | Query string value. |
0 | Success. |
ERANGE | Insufficient buffer size. |
NULL
is passed to the argument, it is assumed that an empty key and/or an empty value has been set. If not successful, the query string stays in the state that has been maintained until this function was executed. © Nintendo Co., Ltd. All rights reserved.