60 return !(*
this == other);
84 if (protocolEnd == -1) {
90 portStart != -1 ? portStart :
urlStr.
indexOf(
"/", protocolEnd + 4);
109 if (pathStart == 0) {
Heap-backed string utility used throughout tiny_dlna.
Definition: Str.h:27
bool equals(const char *other) const
Exact string equality with C-string.
Definition: Str.h:167
int length() const
Current length (int)
Definition: Str.h:57
bool isEmpty() const
True if empty.
Definition: Str.h:54
bool startsWith(const char *prefix) const
True if starts with prefix (case-sensitive)
Definition: Str.h:206
void trim()
Trim spaces on both ends.
Definition: Str.h:235
void substrView(StrView &from, int start, int end)
Assign substring view from StrView [start,end)
Definition: Str.h:69
int indexOf(const char *substr, int start=0) const
Index of substring from position (or -1)
Definition: Str.h:214
void clear()
Clear contents (size -> 0)
Definition: Str.h:93
const char * c_str() const
C-string pointer to internal buffer.
Definition: Str.h:88
URL parser which breaks a full url string up into its individual parts.
Definition: Url.h:18
Str protocolStr
Definition: Url.h:75
Url(Url &url)
Definition: Url.h:34
int port()
Definition: Url.h:46
int portInt
Definition: Url.h:78
const char * host()
Definition: Url.h:41
const char * urlRoot()
Definition: Url.h:43
Str hostStr
Definition: Url.h:74
const char * protocol()
Definition: Url.h:42
bool operator==(Url &other)
Definition: Url.h:56
void setUrl(const char *url)
Definition: Url.h:48
Str urlStr
Definition: Url.h:77
~Url()
Definition: Url.h:23
const char * url()
Definition: Url.h:39
bool operator!=(Url &other)
Definition: Url.h:59
Str urlRootStr
Definition: Url.h:76
void clear()
Definition: Url.h:63
Url(const char *url)
Definition: Url.h:28
const char * path()
Definition: Url.h:40
Str pathStr
Definition: Url.h:73
void parse()
Definition: Url.h:80
Definition: Allocator.h:13