You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
503 B

4 months ago
  1. /*
  2. * IXUrlParser.h
  3. * Author: Benjamin Sergeant
  4. * Copyright (c) 2019 Machine Zone, Inc. All rights reserved.
  5. */
  6. #pragma once
  7. #include <string>
  8. namespace ix
  9. {
  10. class UrlParser
  11. {
  12. public:
  13. static bool parse(const std::string& url,
  14. std::string& protocol,
  15. std::string& host,
  16. std::string& path,
  17. std::string& query,
  18. int& port);
  19. };
  20. } // namespace ix