2019-02-15 05:11:42 +01:00
|
|
|
/*
|
|
|
|
* IXUrlParser.h
|
|
|
|
* Author: Benjamin Sergeant
|
|
|
|
* Copyright (c) 2019 Machine Zone, Inc. All rights reserved.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
2019-02-26 00:55:38 +01:00
|
|
|
namespace ix
|
2019-02-15 05:11:42 +01:00
|
|
|
{
|
|
|
|
bool parseUrl(const std::string& url,
|
|
|
|
std::string& protocol,
|
|
|
|
std::string& host,
|
|
|
|
std::string& path,
|
|
|
|
std::string& query,
|
|
|
|
int& port);
|
|
|
|
|
|
|
|
void printUrl(const std::string& url);
|
|
|
|
}
|