diff options
Diffstat (limited to 'src/gmutil.c')
-rw-r--r-- | src/gmutil.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gmutil.c b/src/gmutil.c index a919d621..2138caa3 100644 --- a/src/gmutil.c +++ b/src/gmutil.c | |||
@@ -88,6 +88,12 @@ void cleanUrlPath_String(iString *d) { | |||
88 | deinit_String(&clean); | 88 | deinit_String(&clean); |
89 | } | 89 | } |
90 | 90 | ||
91 | iRangecc urlProtocol_String(const iString *d) { | ||
92 | iUrl url; | ||
93 | init_Url(&url, d); | ||
94 | return url.protocol; | ||
95 | } | ||
96 | |||
91 | iRangecc urlHost_String(const iString *d) { | 97 | iRangecc urlHost_String(const iString *d) { |
92 | iUrl url; | 98 | iUrl url; |
93 | init_Url(&url, d); | 99 | init_Url(&url, d); |