3#include "mc/_HeaderOutputPredefine.h"
15MCNAPI ::std::string anonymizeIPAddress(::std::string
const& ipAddress);
17MCNAPI ::std::string anonymizeIPv6Address(::std::string
const& ipAddress);
19MCNAPI ::std::string append(::std::string
const& lhs, ::std::string
const& rhs);
22MCNAPI ::std::string appendQueryString(::std::string
const& url, ::std::string
const& query);
24MCNAPI ::std::string assembleUrl(::Util::Url::ComponentsView
const& components);
26MCNAPI ::std::string buildMailtoUrl(::std::string
const& subject, ::std::string
const& body);
28MCNAPI
bool doesRouteMatch(::std::string_view routePattern, ::std::string_view route);
30MCNAPI ::std::string extractAuthorityAndPathFromUrl(::std::string
const& url);
32MCNAPI ::std::optional<::std::string> getExtension(::std::string
const& url);
34MCNAPI
bool getIPv4LabelValues(::std::string
const& ipAddrStr, ::std::vector<uint64>& outLabels);
36MCNAPI
bool getIPv6LabelValues(::std::string
const& ipAddrStr, ::std::vector<uint64>& outLabels);
38MCNAPI ::std::vector<::std::pair<::std::string_view, ::std::string_view>> getQueryParameters(::std::string_view url);
40MCNAPI ::std::string getUncompressedIPv6Address(::std::string
const& ipAddrStr);
42MCNAPI
bool isAddressLocalhost(::std::string
const& ipAddrStr);
44MCNAPI
bool isAddressPrivateNetwork(::std::string
const& ipAddrStr);
47isAddressWithinCIDRMasks_IPv4(::std::string
const& ipAddrStr, ::std::vector<::std::string>
const& ipAddressCIDRMasks);
50isAddressWithinCIDRMasks_IPv6(::std::string
const& ipAddrStr, ::std::vector<::std::string>
const& ipAddressCIDRMasks);
52MCNAPI
bool isValidHostname(::std::string_view address);
54MCNAPI
bool isValidIP(::std::string_view ipAddrStr,
bool considerIPv4Valid,
bool considerIPv6Valid);
57MCNAPI
bool isValidIPv4(::std::string_view ipAddrStr);
59MCNAPI
bool isValidIPv6(::std::string_view ipAddrStr);
62MCNAPI
bool parseOutCIDRValue(::std::string& modifiableAddress,
int& CIDRValue);
65MCNAPI ::Util::Url::ComponentsView parseUrl(::std::string_view url);
67MCNAPI ::std::string setQueryParameter(::std::string_view url, ::std::string_view key, ::std::string_view value);
70MCNAPI
bool startsWithMatchingFullPathSegments(::std::string_view route, ::std::string_view start);
72MCNAPI ::std::string stripProtocol(::std::string
const& url);
75MCNAPI ::std::string stripQueryParameters(::std::string
const& url);
78MCNAPI ::std::optional<::std::string> urlDecode(::std::string_view value,
bool replacePlusWithSpace);
81MCNAPI ::std::string urlEncode(::std::string_view value, ::std::function<
bool(uchar)> isAlphaNum);
83MCNAPI ::Util::ResourceUri::ValidationResult validateAbsoluteUrl(::std::string
const& url);
88MCNAPI ::Util::Url::Components
const& EMPTY_URL();
Definition ValidationResult.h:7
Definition ComponentsView.h:12
Definition Components.h:12