SDK URI API documentation

Version: alpha

FUNCTION
dmURI::Decode()
dmURI::Encode()
dmURI::Parse()
dmURI::Result()

Functions

dmURI::Decode()

dmURI::Decode(src,dst)

Decodes an URL encoded buffer

PARAMETERS

src

const char* Input

dst

char* Decoded output


dmURI::Encode()

dmURI::Encode(src,dst,dst_size,bytes_written[out])

Performs URL encoding of the supplied buffer

PARAMETERS

src

const char* string to encode

dst

char* the destination buffer

dst_size

uint32_t size of the provided out buffer

bytes_written[out]

uint32_t number of bytes written


dmURI::Parse()

dmURI::Parse(uri,parts)

Parse URI and split in three parts. (scheme, location, path)

PARAMETERS

uri

const char* URI to parse

parts

dmURI::Parts Result

RETURNS

RESULT_OK

on success


dmURI::Result()

dmURI::Result()

URI parsing result

PARAMETERS