ada-url 1.28.0__cp313-cp313-macosx_11_0_arm64.whl → 1.29.0__cp313-cp313-macosx_11_0_arm64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ada_url/__init__.py +2 -0
- ada_url/_ada_wrapper.abi3.so +0 -0
- ada_url/ada.cpp +1793 -1768
- ada_url/ada.h +54 -61
- ada_url/ada_adapter.py +3 -0
- {ada_url-1.28.0.dist-info → ada_url-1.29.0.dist-info}/METADATA +2 -3
- ada_url-1.29.0.dist-info/RECORD +14 -0
- {ada_url-1.28.0.dist-info → ada_url-1.29.0.dist-info}/WHEEL +1 -1
- ada_url-1.28.0.dist-info/RECORD +0 -14
- {ada_url-1.28.0.dist-info → ada_url-1.29.0.dist-info}/licenses/LICENSE +0 -0
- {ada_url-1.28.0.dist-info → ada_url-1.29.0.dist-info}/top_level.txt +0 -0
ada_url/ada.h
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* auto-generated on 2026-01-
|
|
1
|
+
/* auto-generated on 2026-01-30 13:29:04 -0500. Do not edit! */
|
|
2
2
|
/* begin file include/ada.h */
|
|
3
3
|
/**
|
|
4
4
|
* @file ada.h
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
#define ADA_H
|
|
31
31
|
|
|
32
32
|
/* begin file include/ada/ada_idna.h */
|
|
33
|
-
/* auto-generated on
|
|
33
|
+
/* auto-generated on 2026-01-30 12:00:02 -0500. Do not edit! */
|
|
34
34
|
/* begin file include/idna.h */
|
|
35
35
|
#ifndef ADA_IDNA_H
|
|
36
36
|
#define ADA_IDNA_H
|
|
@@ -1545,7 +1545,7 @@ struct url_base {
|
|
|
1545
1545
|
* @return A newly allocated string containing the serialized origin.
|
|
1546
1546
|
* @see https://url.spec.whatwg.org/#concept-url-origin
|
|
1547
1547
|
*/
|
|
1548
|
-
[[nodiscard]] virtual std::string get_origin() const
|
|
1548
|
+
[[nodiscard]] virtual std::string get_origin() const = 0;
|
|
1549
1549
|
|
|
1550
1550
|
/**
|
|
1551
1551
|
* Validates whether the hostname is a valid domain according to RFC 1034.
|
|
@@ -1575,10 +1575,10 @@ struct url_base {
|
|
|
1575
1575
|
* @return Number of bytes consumed on success, 0 on failure.
|
|
1576
1576
|
*/
|
|
1577
1577
|
virtual size_t parse_port(std::string_view view,
|
|
1578
|
-
bool check_trailing_content)
|
|
1578
|
+
bool check_trailing_content) = 0;
|
|
1579
1579
|
|
|
1580
1580
|
/** @private */
|
|
1581
|
-
virtual ada_really_inline size_t parse_port(std::string_view view)
|
|
1581
|
+
virtual ada_really_inline size_t parse_port(std::string_view view) {
|
|
1582
1582
|
return this->parse_port(view, false);
|
|
1583
1583
|
}
|
|
1584
1584
|
|
|
@@ -1653,8 +1653,7 @@ ada_really_inline std::optional<std::string_view> prune_hash(
|
|
|
1653
1653
|
* @see https://url.spec.whatwg.org/#shorten-a-urls-path
|
|
1654
1654
|
* @returns Returns true if path is shortened.
|
|
1655
1655
|
*/
|
|
1656
|
-
ada_really_inline bool shorten_path(std::string& path,
|
|
1657
|
-
ada::scheme::type type) noexcept;
|
|
1656
|
+
ada_really_inline bool shorten_path(std::string& path, ada::scheme::type type);
|
|
1658
1657
|
|
|
1659
1658
|
/**
|
|
1660
1659
|
* @private
|
|
@@ -1663,7 +1662,7 @@ ada_really_inline bool shorten_path(std::string& path,
|
|
|
1663
1662
|
* @returns Returns true if path is shortened.
|
|
1664
1663
|
*/
|
|
1665
1664
|
ada_really_inline bool shorten_path(std::string_view& path,
|
|
1666
|
-
ada::scheme::type type)
|
|
1665
|
+
ada::scheme::type type);
|
|
1667
1666
|
|
|
1668
1667
|
/**
|
|
1669
1668
|
* @private
|
|
@@ -1684,15 +1683,14 @@ ada_really_inline void parse_prepared_path(std::string_view input,
|
|
|
1684
1683
|
* @private
|
|
1685
1684
|
* Remove and mutate all ASCII tab or newline characters from an input.
|
|
1686
1685
|
*/
|
|
1687
|
-
ada_really_inline void remove_ascii_tab_or_newline(std::string& input)
|
|
1686
|
+
ada_really_inline void remove_ascii_tab_or_newline(std::string& input);
|
|
1688
1687
|
|
|
1689
1688
|
/**
|
|
1690
1689
|
* @private
|
|
1691
1690
|
* Return the substring from input going from index pos to the end.
|
|
1692
|
-
* This function cannot throw.
|
|
1693
1691
|
*/
|
|
1694
1692
|
ada_really_inline constexpr std::string_view substring(std::string_view input,
|
|
1695
|
-
size_t pos)
|
|
1693
|
+
size_t pos);
|
|
1696
1694
|
|
|
1697
1695
|
/**
|
|
1698
1696
|
* @private
|
|
@@ -1707,7 +1705,7 @@ bool overlaps(std::string_view input1, const std::string& input2) noexcept;
|
|
|
1707
1705
|
*/
|
|
1708
1706
|
ada_really_inline constexpr std::string_view substring(std::string_view input,
|
|
1709
1707
|
size_t pos1,
|
|
1710
|
-
size_t pos2)
|
|
1708
|
+
size_t pos2) {
|
|
1711
1709
|
#if ADA_DEVELOPMENT_CHECKS
|
|
1712
1710
|
if (pos2 < pos1) {
|
|
1713
1711
|
std::cerr << "Negative-length substring: [" << pos1 << " to " << pos2 << ")"
|
|
@@ -1746,8 +1744,7 @@ void trim_c0_whitespace(std::string_view& input) noexcept;
|
|
|
1746
1744
|
* https://url.spec.whatwg.org/#potentially-strip-trailing-spaces-from-an-opaque-path
|
|
1747
1745
|
*/
|
|
1748
1746
|
template <class url_type>
|
|
1749
|
-
ada_really_inline void strip_trailing_spaces_from_opaque_path(
|
|
1750
|
-
url_type& url) noexcept;
|
|
1747
|
+
ada_really_inline void strip_trailing_spaces_from_opaque_path(url_type& url);
|
|
1751
1748
|
|
|
1752
1749
|
/**
|
|
1753
1750
|
* @private
|
|
@@ -2587,6 +2584,7 @@ struct expected_operations_base : expected_storage_base<T, E> {
|
|
|
2587
2584
|
}
|
|
2588
2585
|
|
|
2589
2586
|
template <class Rhs>
|
|
2587
|
+
// NOLINTNEXTLINE(bugprone-exception-escape)
|
|
2590
2588
|
void construct_with(Rhs &&rhs) noexcept {
|
|
2591
2589
|
new (std::addressof(this->m_val)) T(std::forward<Rhs>(rhs).get());
|
|
2592
2590
|
this->m_has_val = true;
|
|
@@ -4942,7 +4940,7 @@ struct url : url_base {
|
|
|
4942
4940
|
* @return The complete URL string (allocates a new string).
|
|
4943
4941
|
* @see https://url.spec.whatwg.org/#dom-url-href
|
|
4944
4942
|
*/
|
|
4945
|
-
[[nodiscard]] ada_really_inline std::string get_href() const
|
|
4943
|
+
[[nodiscard]] ada_really_inline std::string get_href() const;
|
|
4946
4944
|
|
|
4947
4945
|
/**
|
|
4948
4946
|
* Returns the URL's origin as a string (scheme + host + port for special
|
|
@@ -4950,14 +4948,14 @@ struct url : url_base {
|
|
|
4950
4948
|
* @return A newly allocated string containing the serialized origin.
|
|
4951
4949
|
* @see https://url.spec.whatwg.org/#concept-url-origin
|
|
4952
4950
|
*/
|
|
4953
|
-
[[nodiscard]] std::string get_origin() const
|
|
4951
|
+
[[nodiscard]] std::string get_origin() const override;
|
|
4954
4952
|
|
|
4955
4953
|
/**
|
|
4956
4954
|
* Returns the URL's scheme followed by a colon (e.g., "https:").
|
|
4957
4955
|
* @return A newly allocated string with the protocol.
|
|
4958
4956
|
* @see https://url.spec.whatwg.org/#dom-url-protocol
|
|
4959
4957
|
*/
|
|
4960
|
-
[[nodiscard]] std::string get_protocol() const
|
|
4958
|
+
[[nodiscard]] std::string get_protocol() const;
|
|
4961
4959
|
|
|
4962
4960
|
/**
|
|
4963
4961
|
* Returns the URL's host and port (e.g., "example.com:8080").
|
|
@@ -4965,7 +4963,7 @@ struct url : url_base {
|
|
|
4965
4963
|
* @return A newly allocated string with host:port.
|
|
4966
4964
|
* @see https://url.spec.whatwg.org/#dom-url-host
|
|
4967
4965
|
*/
|
|
4968
|
-
[[nodiscard]] std::string get_host() const
|
|
4966
|
+
[[nodiscard]] std::string get_host() const;
|
|
4969
4967
|
|
|
4970
4968
|
/**
|
|
4971
4969
|
* Returns the URL's hostname (without port).
|
|
@@ -4973,7 +4971,7 @@ struct url : url_base {
|
|
|
4973
4971
|
* @return A newly allocated string with the hostname.
|
|
4974
4972
|
* @see https://url.spec.whatwg.org/#dom-url-hostname
|
|
4975
4973
|
*/
|
|
4976
|
-
[[nodiscard]] std::string get_hostname() const
|
|
4974
|
+
[[nodiscard]] std::string get_hostname() const;
|
|
4977
4975
|
|
|
4978
4976
|
/**
|
|
4979
4977
|
* Returns the URL's path component.
|
|
@@ -4995,7 +4993,7 @@ struct url : url_base {
|
|
|
4995
4993
|
* @return A newly allocated string with the search/query.
|
|
4996
4994
|
* @see https://url.spec.whatwg.org/#dom-url-search
|
|
4997
4995
|
*/
|
|
4998
|
-
[[nodiscard]] std::string get_search() const
|
|
4996
|
+
[[nodiscard]] std::string get_search() const;
|
|
4999
4997
|
|
|
5000
4998
|
/**
|
|
5001
4999
|
* Returns the URL's username component.
|
|
@@ -5095,7 +5093,7 @@ struct url : url_base {
|
|
|
5095
5093
|
* @return A newly allocated string with the port.
|
|
5096
5094
|
* @see https://url.spec.whatwg.org/#dom-url-port
|
|
5097
5095
|
*/
|
|
5098
|
-
[[nodiscard]] std::string get_port() const
|
|
5096
|
+
[[nodiscard]] std::string get_port() const;
|
|
5099
5097
|
|
|
5100
5098
|
/**
|
|
5101
5099
|
* Returns the URL's fragment prefixed with '#' (e.g., "#section").
|
|
@@ -5103,7 +5101,7 @@ struct url : url_base {
|
|
|
5103
5101
|
* @return A newly allocated string with the hash.
|
|
5104
5102
|
* @see https://url.spec.whatwg.org/#dom-url-hash
|
|
5105
5103
|
*/
|
|
5106
|
-
[[nodiscard]] std::string get_hash() const
|
|
5104
|
+
[[nodiscard]] std::string get_hash() const;
|
|
5107
5105
|
|
|
5108
5106
|
/**
|
|
5109
5107
|
* Checks if the URL has credentials (non-empty username or password).
|
|
@@ -5151,7 +5149,7 @@ struct url : url_base {
|
|
|
5151
5149
|
friend ada::url_aggregator ada::parser::parse_url<ada::url_aggregator>(
|
|
5152
5150
|
std::string_view, const ada::url_aggregator *);
|
|
5153
5151
|
friend void ada::helpers::strip_trailing_spaces_from_opaque_path<ada::url>(
|
|
5154
|
-
ada::url &url)
|
|
5152
|
+
ada::url &url);
|
|
5155
5153
|
|
|
5156
5154
|
friend ada::url ada::parser::parse_url_impl<ada::url, true>(std::string_view,
|
|
5157
5155
|
const ada::url *);
|
|
@@ -5258,7 +5256,7 @@ struct url : url_base {
|
|
|
5258
5256
|
* Take the scheme from another URL. The scheme string is moved from the
|
|
5259
5257
|
* provided url.
|
|
5260
5258
|
*/
|
|
5261
|
-
constexpr void copy_scheme(ada::url &&u)
|
|
5259
|
+
constexpr void copy_scheme(ada::url &&u);
|
|
5262
5260
|
|
|
5263
5261
|
/**
|
|
5264
5262
|
* Take the scheme from another URL. The scheme string is copied from the
|
|
@@ -6568,7 +6566,7 @@ void find_longest_sequence_of_ipv6_pieces(
|
|
|
6568
6566
|
* @return The serialized IPv6 string (e.g., "2001:db8::1").
|
|
6569
6567
|
* @see https://url.spec.whatwg.org/#concept-ipv6-serializer
|
|
6570
6568
|
*/
|
|
6571
|
-
std::string ipv6(const std::array<uint16_t, 8>& address)
|
|
6569
|
+
std::string ipv6(const std::array<uint16_t, 8>& address);
|
|
6572
6570
|
|
|
6573
6571
|
/**
|
|
6574
6572
|
* Serializes an IPv4 address to its dotted-decimal string representation.
|
|
@@ -6577,7 +6575,7 @@ std::string ipv6(const std::array<uint16_t, 8>& address) noexcept;
|
|
|
6577
6575
|
* @return The serialized IPv4 string (e.g., "192.168.1.1").
|
|
6578
6576
|
* @see https://url.spec.whatwg.org/#concept-ipv4-serializer
|
|
6579
6577
|
*/
|
|
6580
|
-
std::string ipv4(uint64_t address)
|
|
6578
|
+
std::string ipv4(uint64_t address);
|
|
6581
6579
|
|
|
6582
6580
|
} // namespace ada::serializers
|
|
6583
6581
|
|
|
@@ -7173,7 +7171,7 @@ inline void url::set_scheme(std::string &&new_scheme) noexcept {
|
|
|
7173
7171
|
}
|
|
7174
7172
|
}
|
|
7175
7173
|
|
|
7176
|
-
constexpr void url::copy_scheme(ada::url &&u)
|
|
7174
|
+
constexpr void url::copy_scheme(ada::url &&u) {
|
|
7177
7175
|
non_special_scheme = u.non_special_scheme;
|
|
7178
7176
|
type = u.type;
|
|
7179
7177
|
}
|
|
@@ -7183,7 +7181,7 @@ constexpr void url::copy_scheme(const ada::url &u) {
|
|
|
7183
7181
|
type = u.type;
|
|
7184
7182
|
}
|
|
7185
7183
|
|
|
7186
|
-
[[nodiscard]] ada_really_inline std::string url::get_href() const
|
|
7184
|
+
[[nodiscard]] ada_really_inline std::string url::get_href() const {
|
|
7187
7185
|
std::string output = get_protocol();
|
|
7188
7186
|
|
|
7189
7187
|
if (host.has_value()) {
|
|
@@ -7431,7 +7429,7 @@ struct url_aggregator : url_base {
|
|
|
7431
7429
|
* @return A newly allocated string containing the serialized origin.
|
|
7432
7430
|
* @see https://url.spec.whatwg.org/#concept-url-origin
|
|
7433
7431
|
*/
|
|
7434
|
-
[[nodiscard]] std::string get_origin() const
|
|
7432
|
+
[[nodiscard]] std::string get_origin() const override;
|
|
7435
7433
|
|
|
7436
7434
|
/**
|
|
7437
7435
|
* Returns the full serialized URL (the href) as a string_view.
|
|
@@ -7450,8 +7448,7 @@ struct url_aggregator : url_base {
|
|
|
7450
7448
|
* @return A string_view of the username.
|
|
7451
7449
|
* @see https://url.spec.whatwg.org/#dom-url-username
|
|
7452
7450
|
*/
|
|
7453
|
-
[[nodiscard]] std::string_view get_username() const
|
|
7454
|
-
ada_lifetime_bound;
|
|
7451
|
+
[[nodiscard]] std::string_view get_username() const ada_lifetime_bound;
|
|
7455
7452
|
|
|
7456
7453
|
/**
|
|
7457
7454
|
* Returns the URL's password component.
|
|
@@ -7460,8 +7457,7 @@ struct url_aggregator : url_base {
|
|
|
7460
7457
|
* @return A string_view of the password.
|
|
7461
7458
|
* @see https://url.spec.whatwg.org/#dom-url-password
|
|
7462
7459
|
*/
|
|
7463
|
-
[[nodiscard]] std::string_view get_password() const
|
|
7464
|
-
ada_lifetime_bound;
|
|
7460
|
+
[[nodiscard]] std::string_view get_password() const ada_lifetime_bound;
|
|
7465
7461
|
|
|
7466
7462
|
/**
|
|
7467
7463
|
* Returns the URL's port as a string (e.g., "8080").
|
|
@@ -7470,7 +7466,7 @@ struct url_aggregator : url_base {
|
|
|
7470
7466
|
* @return A string_view of the port.
|
|
7471
7467
|
* @see https://url.spec.whatwg.org/#dom-url-port
|
|
7472
7468
|
*/
|
|
7473
|
-
[[nodiscard]] std::string_view get_port() const
|
|
7469
|
+
[[nodiscard]] std::string_view get_port() const ada_lifetime_bound;
|
|
7474
7470
|
|
|
7475
7471
|
/**
|
|
7476
7472
|
* Returns the URL's fragment prefixed with '#' (e.g., "#section").
|
|
@@ -7479,7 +7475,7 @@ struct url_aggregator : url_base {
|
|
|
7479
7475
|
* @return A string_view of the hash.
|
|
7480
7476
|
* @see https://url.spec.whatwg.org/#dom-url-hash
|
|
7481
7477
|
*/
|
|
7482
|
-
[[nodiscard]] std::string_view get_hash() const
|
|
7478
|
+
[[nodiscard]] std::string_view get_hash() const ada_lifetime_bound;
|
|
7483
7479
|
|
|
7484
7480
|
/**
|
|
7485
7481
|
* Returns the URL's host and port (e.g., "example.com:8080").
|
|
@@ -7488,7 +7484,7 @@ struct url_aggregator : url_base {
|
|
|
7488
7484
|
* @return A string_view of host:port.
|
|
7489
7485
|
* @see https://url.spec.whatwg.org/#dom-url-host
|
|
7490
7486
|
*/
|
|
7491
|
-
[[nodiscard]] std::string_view get_host() const
|
|
7487
|
+
[[nodiscard]] std::string_view get_host() const ada_lifetime_bound;
|
|
7492
7488
|
|
|
7493
7489
|
/**
|
|
7494
7490
|
* Returns the URL's hostname (without port).
|
|
@@ -7497,8 +7493,7 @@ struct url_aggregator : url_base {
|
|
|
7497
7493
|
* @return A string_view of the hostname.
|
|
7498
7494
|
* @see https://url.spec.whatwg.org/#dom-url-hostname
|
|
7499
7495
|
*/
|
|
7500
|
-
[[nodiscard]] std::string_view get_hostname() const
|
|
7501
|
-
ada_lifetime_bound;
|
|
7496
|
+
[[nodiscard]] std::string_view get_hostname() const ada_lifetime_bound;
|
|
7502
7497
|
|
|
7503
7498
|
/**
|
|
7504
7499
|
* Returns the URL's path component.
|
|
@@ -7507,7 +7502,7 @@ struct url_aggregator : url_base {
|
|
|
7507
7502
|
* @return A string_view of the pathname.
|
|
7508
7503
|
* @see https://url.spec.whatwg.org/#dom-url-pathname
|
|
7509
7504
|
*/
|
|
7510
|
-
[[nodiscard]] constexpr std::string_view get_pathname() const
|
|
7505
|
+
[[nodiscard]] constexpr std::string_view get_pathname() const
|
|
7511
7506
|
ada_lifetime_bound;
|
|
7512
7507
|
|
|
7513
7508
|
/**
|
|
@@ -7524,7 +7519,7 @@ struct url_aggregator : url_base {
|
|
|
7524
7519
|
* @return A string_view of the search/query.
|
|
7525
7520
|
* @see https://url.spec.whatwg.org/#dom-url-search
|
|
7526
7521
|
*/
|
|
7527
|
-
[[nodiscard]] std::string_view get_search() const
|
|
7522
|
+
[[nodiscard]] std::string_view get_search() const ada_lifetime_bound;
|
|
7528
7523
|
|
|
7529
7524
|
/**
|
|
7530
7525
|
* Returns the URL's scheme followed by a colon (e.g., "https:").
|
|
@@ -7533,8 +7528,7 @@ struct url_aggregator : url_base {
|
|
|
7533
7528
|
* @return A string_view of the protocol.
|
|
7534
7529
|
* @see https://url.spec.whatwg.org/#dom-url-protocol
|
|
7535
7530
|
*/
|
|
7536
|
-
[[nodiscard]] std::string_view get_protocol() const
|
|
7537
|
-
ada_lifetime_bound;
|
|
7531
|
+
[[nodiscard]] std::string_view get_protocol() const ada_lifetime_bound;
|
|
7538
7532
|
|
|
7539
7533
|
/**
|
|
7540
7534
|
* Checks if the URL has credentials (non-empty username or password).
|
|
@@ -7650,7 +7644,7 @@ struct url_aggregator : url_base {
|
|
|
7650
7644
|
private:
|
|
7651
7645
|
// helper methods
|
|
7652
7646
|
friend void helpers::strip_trailing_spaces_from_opaque_path<url_aggregator>(
|
|
7653
|
-
url_aggregator &url)
|
|
7647
|
+
url_aggregator &url);
|
|
7654
7648
|
// parse_url methods
|
|
7655
7649
|
friend url_aggregator parser::parse_url<url_aggregator>(
|
|
7656
7650
|
std::string_view, const url_aggregator *);
|
|
@@ -7679,7 +7673,7 @@ struct url_aggregator : url_base {
|
|
|
7679
7673
|
*/
|
|
7680
7674
|
[[nodiscard]] ada_really_inline bool is_at_path() const noexcept;
|
|
7681
7675
|
|
|
7682
|
-
inline void add_authority_slashes_if_needed()
|
|
7676
|
+
inline void add_authority_slashes_if_needed();
|
|
7683
7677
|
|
|
7684
7678
|
/**
|
|
7685
7679
|
* To optimize performance, you may indicate how much memory to allocate
|
|
@@ -7687,10 +7681,10 @@ struct url_aggregator : url_base {
|
|
|
7687
7681
|
*/
|
|
7688
7682
|
constexpr void reserve(uint32_t capacity);
|
|
7689
7683
|
|
|
7690
|
-
ada_really_inline size_t parse_port(
|
|
7691
|
-
|
|
7684
|
+
ada_really_inline size_t parse_port(std::string_view view,
|
|
7685
|
+
bool check_trailing_content) override;
|
|
7692
7686
|
|
|
7693
|
-
ada_really_inline size_t parse_port(std::string_view view)
|
|
7687
|
+
ada_really_inline size_t parse_port(std::string_view view) override {
|
|
7694
7688
|
return this->parse_port(view, false);
|
|
7695
7689
|
}
|
|
7696
7690
|
|
|
@@ -7755,16 +7749,16 @@ struct url_aggregator : url_base {
|
|
|
7755
7749
|
std::string_view input);
|
|
7756
7750
|
[[nodiscard]] constexpr bool has_authority() const noexcept;
|
|
7757
7751
|
constexpr void set_protocol_as_file();
|
|
7758
|
-
inline void set_scheme(std::string_view new_scheme)
|
|
7752
|
+
inline void set_scheme(std::string_view new_scheme);
|
|
7759
7753
|
/**
|
|
7760
7754
|
* Fast function to set the scheme from a view with a colon in the
|
|
7761
7755
|
* buffer, does not change type.
|
|
7762
7756
|
*/
|
|
7763
7757
|
inline void set_scheme_from_view_with_colon(
|
|
7764
|
-
std::string_view new_scheme_with_colon)
|
|
7765
|
-
inline void copy_scheme(const url_aggregator &u)
|
|
7758
|
+
std::string_view new_scheme_with_colon);
|
|
7759
|
+
inline void copy_scheme(const url_aggregator &u);
|
|
7766
7760
|
|
|
7767
|
-
inline void update_host_to_base_host(const std::string_view input)
|
|
7761
|
+
inline void update_host_to_base_host(const std::string_view input);
|
|
7768
7762
|
|
|
7769
7763
|
}; // url_aggregator
|
|
7770
7764
|
|
|
@@ -8556,7 +8550,7 @@ url_aggregator::get_components() const noexcept {
|
|
|
8556
8550
|
components.protocol_end + 2) == "//";
|
|
8557
8551
|
}
|
|
8558
8552
|
|
|
8559
|
-
inline void ada::url_aggregator::add_authority_slashes_if_needed()
|
|
8553
|
+
inline void ada::url_aggregator::add_authority_slashes_if_needed() {
|
|
8560
8554
|
ada_log("url_aggregator::add_authority_slashes_if_needed");
|
|
8561
8555
|
ADA_ASSERT_TRUE(validate());
|
|
8562
8556
|
// Protocol setter will insert `http:` to the URL. It is up to hostname setter
|
|
@@ -8593,7 +8587,7 @@ constexpr bool url_aggregator::has_non_empty_username() const noexcept {
|
|
|
8593
8587
|
|
|
8594
8588
|
constexpr bool url_aggregator::has_non_empty_password() const noexcept {
|
|
8595
8589
|
ada_log("url_aggregator::has_non_empty_password");
|
|
8596
|
-
return components.host_start
|
|
8590
|
+
return components.host_start > components.username_end;
|
|
8597
8591
|
}
|
|
8598
8592
|
|
|
8599
8593
|
constexpr bool url_aggregator::has_password() const noexcept {
|
|
@@ -8665,8 +8659,8 @@ constexpr bool url_aggregator::has_port() const noexcept {
|
|
|
8665
8659
|
return buffer;
|
|
8666
8660
|
}
|
|
8667
8661
|
|
|
8668
|
-
ada_really_inline size_t
|
|
8669
|
-
|
|
8662
|
+
ada_really_inline size_t
|
|
8663
|
+
url_aggregator::parse_port(std::string_view view, bool check_trailing_content) {
|
|
8670
8664
|
ada_log("url_aggregator::parse_port('", view, "') ", view.size());
|
|
8671
8665
|
if (!view.empty() && view[0] == '-') {
|
|
8672
8666
|
ada_log("parse_port: view[0] == '0' && view.size() > 1");
|
|
@@ -8904,8 +8898,8 @@ constexpr void url_aggregator::set_protocol_as_file() {
|
|
|
8904
8898
|
return true;
|
|
8905
8899
|
}
|
|
8906
8900
|
|
|
8907
|
-
[[nodiscard]] constexpr std::string_view url_aggregator::get_pathname()
|
|
8908
|
-
|
|
8901
|
+
[[nodiscard]] constexpr std::string_view url_aggregator::get_pathname() const
|
|
8902
|
+
ada_lifetime_bound {
|
|
8909
8903
|
ada_log("url_aggregator::get_pathname pathname_start = ",
|
|
8910
8904
|
components.pathname_start, " buffer.size() = ", buffer.size(),
|
|
8911
8905
|
" components.search_start = ", components.search_start,
|
|
@@ -8924,8 +8918,7 @@ inline std::ostream &operator<<(std::ostream &out,
|
|
|
8924
8918
|
return out << u.to_string();
|
|
8925
8919
|
}
|
|
8926
8920
|
|
|
8927
|
-
void url_aggregator::update_host_to_base_host(
|
|
8928
|
-
const std::string_view input) noexcept {
|
|
8921
|
+
void url_aggregator::update_host_to_base_host(const std::string_view input) {
|
|
8929
8922
|
ada_log("url_aggregator::update_host_to_base_host ", input);
|
|
8930
8923
|
ADA_ASSERT_TRUE(validate());
|
|
8931
8924
|
ADA_ASSERT_TRUE(!helpers::overlaps(input, buffer));
|
|
@@ -11228,14 +11221,14 @@ constructor_string_parser<regex_provider>::parse(std::string_view input) {
|
|
|
11228
11221
|
#ifndef ADA_ADA_VERSION_H
|
|
11229
11222
|
#define ADA_ADA_VERSION_H
|
|
11230
11223
|
|
|
11231
|
-
#define ADA_VERSION "3.4.
|
|
11224
|
+
#define ADA_VERSION "3.4.2"
|
|
11232
11225
|
|
|
11233
11226
|
namespace ada {
|
|
11234
11227
|
|
|
11235
11228
|
enum {
|
|
11236
11229
|
ADA_VERSION_MAJOR = 3,
|
|
11237
11230
|
ADA_VERSION_MINOR = 4,
|
|
11238
|
-
ADA_VERSION_REVISION =
|
|
11231
|
+
ADA_VERSION_REVISION = 2,
|
|
11239
11232
|
};
|
|
11240
11233
|
|
|
11241
11234
|
} // namespace ada
|
ada_url/ada_adapter.py
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ada-url
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.29.0
|
|
4
4
|
Summary: URL parser and manipulator based on the WHAT WG URL standard
|
|
5
5
|
Author-email: Bo Bayles <bo@bbayles.com>
|
|
6
|
-
License: Apache
|
|
6
|
+
License-Expression: Apache-2.0
|
|
7
7
|
Project-URL: Homepage, https://www.ada-url.com/
|
|
8
8
|
Project-URL: Documentation, https://ada-url.readthedocs.io
|
|
9
9
|
Project-URL: Repository, https://github.com/ada-url/ada-python
|
|
10
|
-
Classifier: License :: OSI Approved :: Apache Software License
|
|
11
10
|
Classifier: Programming Language :: Python :: 3
|
|
12
11
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
13
12
|
Requires-Python: >=3.10
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
ada_url-1.29.0.dist-info/RECORD,,
|
|
2
|
+
ada_url-1.29.0.dist-info/WHEEL,sha256=EcDbH569qIgw_MYxb6pwJQQ_P4bsG7DHk3YpehBqaHk,110
|
|
3
|
+
ada_url-1.29.0.dist-info/top_level.txt,sha256=8YlQkS2I0hQyH611C1dxEv7gVFgeljn-aQcwaQL8qcY,49
|
|
4
|
+
ada_url-1.29.0.dist-info/METADATA,sha256=-TJFW_Rzld-0PiQtI2Sd6LpDATNKA8iBlx0eaN4HyLs,4773
|
|
5
|
+
ada_url-1.29.0.dist-info/licenses/LICENSE,sha256=9D0P_RQ1VlnPOXk6EgYFdtrLIXu1d2jtwnDnMS67qEQ,1060
|
|
6
|
+
docs/conf.py,sha256=cn270pOmLLUH2msNwTcHCa1uo1un0qR1_pz8WSuoRi8,636
|
|
7
|
+
ada_url/_ada_wrapper.abi3.so,sha256=FRH5VZ9ssF1m3k351F39y2cBKh1yYm9v9OLoNG5FKQE,685368
|
|
8
|
+
ada_url/ada_c.h,sha256=zfezAA0lMCoKPEhrrbr38gghdfShTrCY_sRWUj3XV4k,7561
|
|
9
|
+
ada_url/__init__.py,sha256=TNvshOzbbgNsTAXd1cR6E03ht2JT_mTHY3lmyYnAnl0,599
|
|
10
|
+
ada_url/ada.h,sha256=5iy7v4vnZqUb_bCqh3qERBk4vgIGa6AOrq_eSRGoWz0,411661
|
|
11
|
+
ada_url/ada_build.py,sha256=jpg4zcFSkprqDlE4c6Vvo0zB0IGTCeaNs5NAO2nT7KE,925
|
|
12
|
+
ada_url/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
13
|
+
ada_url/ada_adapter.py,sha256=zkWq5HPzbEoy7xTCIoQVIAg0ehXxwiAKt4-mSfw9e24,21668
|
|
14
|
+
ada_url/ada.cpp,sha256=Jfmht15hRakfm2p3530Asu-3Y_2vQoZapsxsqbWhpik,976668
|
ada_url-1.28.0.dist-info/RECORD
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
docs/conf.py,sha256=cn270pOmLLUH2msNwTcHCa1uo1un0qR1_pz8WSuoRi8,636
|
|
2
|
-
ada_url/_ada_wrapper.abi3.so,sha256=mVM9OMDLvMPXQr4HJPJTlp4nUcCCuqAVJUB3zeBo4e4,685944
|
|
3
|
-
ada_url/ada_c.h,sha256=zfezAA0lMCoKPEhrrbr38gghdfShTrCY_sRWUj3XV4k,7561
|
|
4
|
-
ada_url/__init__.py,sha256=spKYm9if-a8MLSbi5BuqiGerwUOBangUbev4XG3jEGA,563
|
|
5
|
-
ada_url/ada.h,sha256=KmcgXxslj1LYWIUp8AcqceoWQuvPR9CA0XS5_M17f5Y,412098
|
|
6
|
-
ada_url/ada_build.py,sha256=jpg4zcFSkprqDlE4c6Vvo0zB0IGTCeaNs5NAO2nT7KE,925
|
|
7
|
-
ada_url/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
8
|
-
ada_url/ada_adapter.py,sha256=37WOSXf1b67xCIKvdhFOEXVC_59R1ExRwpbUg3XyQRw,21594
|
|
9
|
-
ada_url/ada.cpp,sha256=a3DdGapMWWsbbmtJ3hv2TtAaz4pAftHJAInFpHp0-Vg,975167
|
|
10
|
-
ada_url-1.28.0.dist-info/RECORD,,
|
|
11
|
-
ada_url-1.28.0.dist-info/WHEEL,sha256=KreXLeNnYSLDPpk7qnNyKd0DQEhtY-je-mdlEpkBMmo,109
|
|
12
|
-
ada_url-1.28.0.dist-info/top_level.txt,sha256=8YlQkS2I0hQyH611C1dxEv7gVFgeljn-aQcwaQL8qcY,49
|
|
13
|
-
ada_url-1.28.0.dist-info/METADATA,sha256=XGRp2qcxPwUjdLU7pSfK7Mump1yCPr9AW6ZW4OJTxk0,4825
|
|
14
|
-
ada_url-1.28.0.dist-info/licenses/LICENSE,sha256=9D0P_RQ1VlnPOXk6EgYFdtrLIXu1d2jtwnDnMS67qEQ,1060
|
|
File without changes
|
|
File without changes
|