summaryrefslogtreecommitdiff
path: root/indra/llcommon/lluriparser.h
diff options
context:
space:
mode:
authorRye Mutt <rye@alchemyviewer.org>2024-07-28 16:27:42 -0400
committerAndrey Kleshchev <117672381+akleshchev@users.noreply.github.com>2024-07-29 13:33:12 +0300
commit3e322df4fb71cbeff27aab85bb48c7da595b548c (patch)
tree6b5a975903f9ae3f26073b3de110ccdb9c4c991a /indra/llcommon/lluriparser.h
parent1c50229e6e8ceff6ebddff72aa26f39eed3a561c (diff)
Replace liburiparser with boost::url
Diffstat (limited to 'indra/llcommon/lluriparser.h')
-rw-r--r--indra/llcommon/lluriparser.h27
1 files changed, 13 insertions, 14 deletions
diff --git a/indra/llcommon/lluriparser.h b/indra/llcommon/lluriparser.h
index 77eb4031d5..61d613f399 100644
--- a/indra/llcommon/lluriparser.h
+++ b/indra/llcommon/lluriparser.h
@@ -30,7 +30,7 @@
#define LL_LLURIPARSER_H
#include <string>
-#include "uriparser/Uri.h"
+#include "boost/url.hpp"
class LL_COMMON_API LLUriParser
{
@@ -38,36 +38,35 @@ public:
LLUriParser(const std::string& u);
~LLUriParser();
- const char * scheme() const;
- void sheme (const std::string& s);
+ const std::string& scheme() const;
+ void scheme (const std::string& s);
- const char * port() const;
+ const std::string& port() const;
void port (const std::string& s);
- const char * host() const;
+ const std::string& host() const;
void host (const std::string& s);
- const char * path() const;
+ const std::string& path() const;
void path (const std::string& s);
- const char * query() const;
+ const std::string& query() const;
void query (const std::string& s);
- const char * fragment() const;
+ const std::string& fragment() const;
void fragment (const std::string& s);
- const char * normalizedUri() const;
+ const std::string& normalizedUri() const;
void extractParts();
void glue(std::string& uri) const;
void glueFirst(std::string& uri, bool use_scheme = true) const;
void glueSecond(std::string& uri) const;
bool test() const;
- S32 normalize();
+ bool normalize();
private:
- S32 parse();
- void textRangeToString(UriTextRangeA& textRange, std::string& str);
+ bool parse();
std::string mScheme;
std::string mHost;
std::string mPort;
@@ -76,9 +75,9 @@ private:
std::string mFragment;
std::string mNormalizedUri;
- UriUriA mUri;
+ boost::url mUri;
- S32 mRes;
+ bool mRes;
bool mTmpScheme;
bool mNormalizedTmp;
};