class Url

Defined at line 54 of file ../../third_party/openthread/src/lib/url/url.hpp

Implements the URL processing.

Public Methods

void Url ()

Defined at line 15 of file ../../src/connectivity/openthread/third_party/openthread/platform/url.cc

otError Init (char * aUrl)

Initializes the URL.

Parameters

aUrl [in] A buffer stores the null-terminated URL string.

Defined at line 22 of file ../../src/connectivity/openthread/third_party/openthread/platform/url.cc

const char * GetValue (const char * aName, const char * aLastValue)

Gets the value of parameter

Parameters

aName [in] The parameter name.
aLastValue [in] The last iterated parameter value, nullptr for the first value.

Defined at line 51 of file ../../src/connectivity/openthread/third_party/openthread/platform/url.cc

const char * GetPath ()

Gets the path in URL.

Defined at line 74 of file ../../third_party/openthread/src/lib/url/url.hpp

otError ParseUint32 (const char * aName, uint32_t & aValue)

Parses a `uint32_t` parameter value.

The parameter value in string is parsed as decimal or hex format (if contains `0x` or `0X`

prefix).

Parameters

aName [in] A pointer to the parameter name.
aValue [out] A reference to an `uint32_t` variable to output the parameter value. The original value of won't change if failed to get the value.

Defined at line 81 of file ../../src/connectivity/openthread/third_party/openthread/platform/url.cc

const char * GetProtocol ()

Returns the URL protocol.

Defined at line 91 of file ../../third_party/openthread/src/lib/url/url.hpp

otError ParseUint16 (const char * aName, uint16_t & aValue)

Parses a `uint16_t` parameter value.

The parameter value in string is parsed as decimal or hex format (if contains `0x` or `0X`

prefix).

Parameters

aName [in] A pointer to the parameter name.
aValue [out] A reference to an `uint16_t` variable to output the parameter value. The original value of won't change if failed to get the value.

Defined at line 96 of file ../../src/connectivity/openthread/third_party/openthread/platform/url.cc

bool HasParam (const char * aName)

Indicates whether or not the url contains the parameter.

Parameters

aName [in] A pointer to the parameter name.

Defined at line 101 of file ../../third_party/openthread/src/lib/url/url.hpp

otError ParseUint8 (const char * aName, uint8_t & aValue)

Parses a `uint8_t` parameter value.

The parameter value in string is parsed as decimal or hex format (if contains `0x` or `0X`

prefix).

Parameters

aName [in] A pointer to the parameter name.
aValue [out] A reference to an `uint16_t` variable to output the parameter value. The original value of won't change if failed to get the value.

Defined at line 108 of file ../../src/connectivity/openthread/third_party/openthread/platform/url.cc

otError ParseInt32 (const char * aName, int32_t & aValue)

Parses a `int32_t` parameter value.

The parameter value in string is parsed as decimal or hex format (if contains `0x` or `0X`

prefix). The string can start with `+`/`-` sign.

Parameters

aName [in] A pointer to the parameter name.
aValue [out] A reference to an `int32_t` variable to output the parameter value. The original value of won't change if failed to get the value.

Defined at line 120 of file ../../src/connectivity/openthread/third_party/openthread/platform/url.cc

otError ParseInt16 (const char * aName, int16_t & aValue)

Parses a `int16_t` parameter value.

The parameter value in string is parsed as decimal or hex format (if contains `0x` or `0X`

prefix). The string can start with `+`/`-` sign.

Parameters

aName [in] A pointer to the parameter name.
aValue [out] A reference to an `int16_t` variable to output the parameter value. The original value of won't change if failed to get the value.

Defined at line 135 of file ../../src/connectivity/openthread/third_party/openthread/platform/url.cc

otError ParseInt8 (const char * aName, int8_t & aValue)

Parses a `int8_t` parameter value.

The parameter value in string is parsed as decimal or hex format (if contains `0x` or `0X`

prefix). The string can start with `+`/`-` sign.

Parameters

aName [in] A pointer to the parameter name.
aValue [out] A reference to an `int8_t` variable to output the parameter value. The original value of won't change if failed to get the value.

Defined at line 147 of file ../../src/connectivity/openthread/third_party/openthread/platform/url.cc