64 return !(*
this == other);
79 if (protocolEnd == -1) {
85 portStart != -1 ? portStart :
urlStr.
indexOf(
"/", protocolEnd + 4);
104 if (pathStart == 0) {
void log(DlnaLogLevel current_level, const char *fmt...)
Print log message.
Definition: Logger.h:40
virtual void substrView(StrView &from, int start, int end)
copies a substring into the current string
Definition: StrView.h:493
virtual bool isEmpty()
checks if the string is empty
Definition: StrView.h:383
virtual int indexOf(const char c, int start=0)
Definition: StrView.h:275
virtual bool startsWith(const char *str)
checks if the string starts with the indicated substring
Definition: StrView.h:184
virtual int length()
Definition: StrView.h:380
virtual void trim()
remove leading and traling spaces
Definition: StrView.h:520
virtual bool equals(const char *str)
checks if the string equals indicated parameter string
Definition: StrView.h:178
String implementation which keeps the data on the heap. We grow the allocated memory only if the copy...
Definition: Str.h:22
const char * c_str()
provides the string value as const char*
Definition: Str.h:187
void clear() override
clears the string by setting the terminating 0 at the beginning
Definition: Str.h:163
URL parser which breaks a full url string up into its individual parts.
Definition: Url.h:18
Str protocolStr
Definition: Url.h:70
Url(Url &url)
Definition: Url.h:38
int port()
Definition: Url.h:50
int portInt
Definition: Url.h:73
const char * host()
Definition: Url.h:45
const char * urlRoot()
Definition: Url.h:47
Str hostStr
Definition: Url.h:69
const char * protocol()
Definition: Url.h:46
bool operator==(Url &other)
Definition: Url.h:60
void setUrl(const char *url)
Definition: Url.h:52
Str urlStr
Definition: Url.h:72
~Url()
Definition: Url.h:23
const char * url()
Definition: Url.h:43
bool operator!=(Url &other)
Definition: Url.h:63
Str urlRootStr
Definition: Url.h:71
Url(const char *url)
Definition: Url.h:32
const char * path()
Definition: Url.h:44
Str pathStr
Definition: Url.h:68
void parse()
Definition: Url.h:75
Definition: Allocator.h:6
LoggerClass DlnaLogger
Definition: Logger.cpp:5