78 int hostEnd = portStart!=-1 ? portStart :
urlStr.
indexOf(
"/",protocolEnd+4);
void log(DlnaLogLevel current_level, const char *fmt...)
Print log message.
Definition: Logger.h:40
virtual bool isEmpty()
checks if the string is empty
Definition: StrView.h:373
virtual int indexOf(const char c, int start=0)
Definition: StrView.h:267
virtual bool startsWith(const char *str)
checks if the string starts with the indicated substring
Definition: StrView.h:177
virtual int length()
Definition: StrView.h:370
virtual void trim()
remove leading and traling spaces
Definition: StrView.h:510
virtual void substring(StrView &from, int start, int end)
copies a substring into the current string
Definition: StrView.h:483
String implementation which keeps the data on the heap. We grow the allocated memory only if the copy...
Definition: Str.h:22
void clear() override
clears the string by setting the terminating 0 at the beginning
Definition: Str.h:164
const char * c_str()
provides the string value as const char*
Definition: Str.h:188
URL parser which breaks a full url string up into its individual parts.
Definition: Url.h:18
Url()
Definition: Url.h:21
const char * path()
Definition: Url.h:47
Str protocolStr
Definition: Url.h:64
Url(Url &url)
Definition: Url.h:41
int port()
Definition: Url.h:51
int portInt
Definition: Url.h:67
Str hostStr
Definition: Url.h:63
const char * urlRoot()
Definition: Url.h:50
void setUrl(const char *url)
Definition: Url.h:53
Str urlStr
Definition: Url.h:66
~Url()
Definition: Url.h:25
const char * protocol()
Definition: Url.h:49
const char * url()
Definition: Url.h:46
Str urlRootStr
Definition: Url.h:65
Url(const char *url)
Definition: Url.h:35
Str pathStr
Definition: Url.h:62
const char * host()
Definition: Url.h:48
void parse()
Definition: Url.h:69
Definition: Allocator.h:6
@ DlnaDebug
Definition: Logger.h:16
LoggerClass DlnaLogger
Definition: Logger.cpp:5