| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 11918d7 commit 13930f0
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,4 @@ | |||
| 1 | - /* auto-generated on 2023-05-19 00:02:33 -0400. Do not edit! */ | ||
| 1 | + /* auto-generated on 2023-05-25 16:09:25 -0400. Do not edit! */ | ||
| 2 | 2 | /* begin file src/ada.cpp */ | |
| 3 | 3 | #include "ada.h" | |
| 4 | 4 | /* begin file src/checkers.cpp */ | |
@@ -9313,7 +9313,7 @@ bool is_label_valid(const std::u32string_view label) { | |||
| 9313 | 9313 | // - For Nontransitional Processing, each value must be either valid or | |
| 9314 | 9314 | // deviation. | |
| 9315 | 9315 | ||
| 9316 | - // If CheckJoiners, the label must satisify the ContextJ rules from Appendix | ||
| 9316 | + // If CheckJoiners, the label must satisfy the ContextJ rules from Appendix | ||
| 9317 | 9317 | // A, in The Unicode Code Points and Internationalized Domain Names for | |
| 9318 | 9318 | // Applications (IDNA) [IDNA2008]. | |
| 9319 | 9319 | constexpr static uint32_t virama[] = { | |
@@ -10604,7 +10604,7 @@ ada_really_inline void remove_ascii_tab_or_newline( | |||
| 10604 | 10604 | ada_really_inline std::string_view substring(std::string_view input, | |
| 10605 | 10605 | size_t pos) noexcept { | |
| 10606 | 10606 | ADA_ASSERT_TRUE(pos <= input.size()); | |
| 10607 | - // The following is safer but uneeded if we have the above line: | ||
| 10607 | + // The following is safer but unneeded if we have the above line: | ||
| 10608 | 10608 | // return pos > input.size() ? std::string_view() : input.substr(pos); | |
| 10609 | 10609 | return input.substr(pos); | |
| 10610 | 10610 | } | |
@@ -11751,7 +11751,10 @@ namespace ada { | |||
| 11751 | 11751 | if (non_special_scheme == "blob") { | |
| 11752 | 11752 | if (!path.empty()) { | |
| 11753 | 11753 | auto result = ada::parse<ada::url>(path); | |
| 11754 | - if (result && result->is_special()) { | ||
| 11754 | + if (result && | ||
| 11755 | + (result->type == scheme::HTTP || result->type == scheme::HTTPS)) { | ||
| 11756 | + // If pathURL’s scheme is not "http" and not "https", then return a | ||
| 11757 | + // new opaque origin. | ||
| 11755 | 11758 | return ada::helpers::concat(result->get_protocol(), "//", | |
| 11756 | 11759 | result->get_host()); | |
| 11757 | 11760 | } | |
@@ -13720,7 +13723,9 @@ bool url_aggregator::set_hostname(const std::string_view input) { | |||
| 13720 | 13723 | std::string_view path = get_pathname(); | |
| 13721 | 13724 | if (!path.empty()) { | |
| 13722 | 13725 | auto out = ada::parse<ada::url_aggregator>(path); | |
| 13723 | - if (out && out->is_special()) { | ||
| 13726 | + if (out && (out->type == scheme::HTTP || out->type == scheme::HTTPS)) { | ||
| 13727 | + // If pathURL’s scheme is not "http" and not "https", then return a | ||
| 13728 | + // new opaque origin. | ||
| 13724 | 13729 | return helpers::concat(out->get_protocol(), "//", out->get_host()); | |
| 13725 | 13730 | } | |
| 13726 | 13731 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,4 @@ | |||
| 1 | - /* auto-generated on 2023-05-19 00:02:33 -0400. Do not edit! */ | ||
| 1 | + /* auto-generated on 2023-05-25 16:09:25 -0400. Do not edit! */ | ||
| 2 | 2 | /* begin file include/ada.h */ | |
| 3 | 3 | /** | |
| 4 | 4 | * @file ada.h | |
@@ -425,7 +425,7 @@ namespace ada { | |||
| 425 | 425 | #define ADA_DEVELOPMENT_CHECKS 1 | |
| 426 | 426 | #endif // __OPTIMIZE__ | |
| 427 | 427 | #endif // _MSC_VER | |
| 428 | - #endif // SIMDJSON_DEVELOPMENT_CHECKS | ||
| 428 | + #endif // ADA_DEVELOPMENT_CHECKS | ||
| 429 | 429 | ||
| 430 | 430 | #define ADA_STR(x) #x | |
| 431 | 431 | ||
@@ -949,7 +949,7 @@ ada_really_inline bool bit_at(const uint8_t a[], const uint8_t i) { | |||
| 949 | 949 | namespace ada::checkers { | |
| 950 | 950 | ||
| 951 | 951 | inline bool has_hex_prefix_unsafe(std::string_view input) { | |
| 952 | - // This is actualy efficient code, see has_hex_prefix for the assembly. | ||
| 952 | + // This is actually efficient code, see has_hex_prefix for the assembly. | ||
| 953 | 953 | uint32_t value_one = 1; | |
| 954 | 954 | bool is_little_endian = (reinterpret_cast<char*>(&value_one)[0] == 1); | |
| 955 | 955 | uint16_t word0x{}; | |
@@ -2895,7 +2895,7 @@ struct default_constructor_tag { | |||
| 2895 | 2895 | }; | |
| 2896 | 2896 | ||
| 2897 | 2897 | // expected_default_ctor_base will ensure that expected has a deleted default | |
| 2898 | - // consturctor if T is not default constructible. | ||
| 2898 | + // constructor if T is not default constructible. | ||
| 2899 | 2899 | // This specialization is for when T is default constructible | |
| 2900 | 2900 | template <class T, class E, | |
| 2901 | 2901 | bool Enable = | |
@@ -4359,7 +4359,7 @@ contains_forbidden_domain_code_point_or_upper(const char* input, | |||
| 4359 | 4359 | size_t length) noexcept; | |
| 4360 | 4360 | ||
| 4361 | 4361 | /** | |
| 4362 | - * Checks if the input is a forbidden doamin code point. | ||
| 4362 | + * Checks if the input is a forbidden domain code point. | ||
| 4363 | 4363 | * @see https://url.spec.whatwg.org/#forbidden-domain-code-point | |
| 4364 | 4364 | */ | |
| 4365 | 4365 | ada_really_inline constexpr bool is_forbidden_domain_code_point( | |
@@ -4586,7 +4586,7 @@ struct url_aggregator : url_base { | |||
| 4586 | 4586 | */ | |
| 4587 | 4587 | [[nodiscard]] std::string_view get_pathname() const noexcept; | |
| 4588 | 4588 | /** | |
| 4589 | - * Compute the pathname length in bytes witout instantiating a view or a | ||
| 4589 | + * Compute the pathname length in bytes without instantiating a view or a | ||
| 4590 | 4590 | * string. | |
| 4591 | 4591 | * @return size of the pathname in bytes | |
| 4592 | 4592 | * @see https://url.spec.whatwg.org/#dom-url-pathname | |
@@ -5031,7 +5031,7 @@ struct url : url_base { | |||
| 5031 | 5031 | [[nodiscard]] const std::string_view get_pathname() const noexcept; | |
| 5032 | 5032 | ||
| 5033 | 5033 | /** | |
| 5034 | - * Compute the pathname length in bytes witout instantiating a view or a | ||
| 5034 | + * Compute the pathname length in bytes without instantiating a view or a | ||
| 5035 | 5035 | * string. | |
| 5036 | 5036 | * @return size of the pathname in bytes | |
| 5037 | 5037 | * @see https://url.spec.whatwg.org/#dom-url-pathname | |
@@ -6318,7 +6318,7 @@ inline void ada::url_aggregator::add_authority_slashes_if_needed() noexcept { | |||
| 6318 | 6318 | ADA_ASSERT_TRUE(validate()); | |
| 6319 | 6319 | // Protocol setter will insert `http:` to the URL. It is up to hostname setter | |
| 6320 | 6320 | // to insert | |
| 6321 | - // `//` initially to the buffer, since it depends on the hostname existance. | ||
| 6321 | + // `//` initially to the buffer, since it depends on the hostname existence. | ||
| 6322 | 6322 | if (has_authority()) { | |
| 6323 | 6323 | return; | |
| 6324 | 6324 | } | |
@@ -6485,14 +6485,14 @@ inline std::ostream &operator<<(std::ostream &out, | |||
| 6485 | 6485 | #ifndef ADA_ADA_VERSION_H | |
| 6486 | 6486 | #define ADA_ADA_VERSION_H | |
| 6487 | 6487 | ||
| 6488 | - #define ADA_VERSION "2.4.2" | ||
| 6488 | + #define ADA_VERSION "2.5.0" | ||
| 6489 | 6489 | ||
| 6490 | 6490 | namespace ada { | |
| 6491 | 6491 | ||
| 6492 | 6492 | enum { | |
| 6493 | 6493 | ADA_VERSION_MAJOR = 2, | |
| 6494 | - ADA_VERSION_MINOR = 4, | ||
| 6495 | - ADA_VERSION_REVISION = 2, | ||
| 6494 | + ADA_VERSION_MINOR = 5, | ||
| 6495 | + ADA_VERSION_REVISION = 0, | ||
| 6496 | 6496 | }; | |
| 6497 | 6497 | ||
| 6498 | 6498 | } // namespace ada | |
| Back | FazBrowse Home | New Git URL |
0 commit comments