LeviLamina
Loading...
Searching...
No Matches
Url.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7namespace Util::ResourceUri { struct ValidationResult; }
8namespace Util::Url { struct Components; }
9namespace Util::Url { struct ComponentsView; }
10// clang-format on
11
12namespace Util::Url {
13// functions
14// NOLINTBEGIN
15MCNAPI ::std::string anonymizeIPAddress(::std::string const& ipAddress);
16
17MCNAPI ::std::string anonymizeIPv6Address(::std::string const& ipAddress);
18
19MCNAPI ::std::string append(::std::string const& lhs, ::std::string const& rhs);
20
21MCNAPI bool isValidIP(::std::string_view ipAddrStr, bool considerIPv4Valid, bool considerIPv6Valid);
22
23MCNAPI ::Util::Url::ComponentsView parseUrl(::std::string_view url);
24
25MCNAPI ::std::string urlEncode(::std::string_view value, ::std::function<bool(uchar)> isAlphaNum);
26
27MCNAPI ::Util::ResourceUri::ValidationResult validateAbsoluteUrl(::std::string const& url);
28// NOLINTEND
29
30// static variables
31// NOLINTBEGIN
32MCNAPI ::std::vector<::std::pair<::std::string, ::std::string>> const& EMPTY_QUERY_PARAMETERS();
33
34MCNAPI ::Util::Url::Components const& EMPTY_URL();
35// NOLINTEND
36
37} // namespace Util::Url