summaryrefslogtreecommitdiffstats
path: root/contrib/llvm/tools/lldb/source/Utility/UriParser.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/llvm/tools/lldb/source/Utility/UriParser.h')
-rw-r--r--contrib/llvm/tools/lldb/source/Utility/UriParser.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/llvm/tools/lldb/source/Utility/UriParser.h b/contrib/llvm/tools/lldb/source/Utility/UriParser.h
index c46628d..fb129ea 100644
--- a/contrib/llvm/tools/lldb/source/Utility/UriParser.h
+++ b/contrib/llvm/tools/lldb/source/Utility/UriParser.h
@@ -20,6 +20,14 @@
class UriParser
{
public:
+ // Parses
+ // RETURN VALUE
+ // if url is valid, function returns true and
+ // scheme/hostname/port/path are set to the parsed values
+ // port it set to -1 if it is not included in the URL
+ //
+ // if the url is invalid, function returns false and
+ // output parameters remain unchanged
static bool Parse(const char* uri,
std::string& scheme,
std::string& hostname,
OpenPOWER on IntegriCloud