File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 1- /* auto-generated on 2023-08-29 15:28:19 -0400. Do not edit! */
1+ /* auto-generated on 2023-09-19 15:58:51 -0400. Do not edit! */
22/* begin file include/idna.h */
33#ifndef ADA_IDNA_H
44#define ADA_IDNA_H
@@ -119,9 +119,8 @@ std::string to_ascii(std::string_view ut8_string);
119119// https://url.spec.whatwg.org/#forbidden-domain-code-point
120120bool contains_forbidden_domain_code_point (std::string_view ascii_string);
121121
122- bool constexpr begins_with (std::u32string_view view,
123- std::u32string_view prefix);
124- bool constexpr begins_with (std::string_view view, std::string_view prefix);
122+ bool begins_with (std::u32string_view view, std::u32string_view prefix);
123+ bool begins_with (std::string_view view, std::string_view prefix);
125124
126125bool constexpr is_ascii (std::u32string_view view);
127126bool constexpr is_ascii (std::string_view view);
Original file line number Diff line number Diff line change 1- /* auto-generated on 2023-08-29 15:28:19 -0400. Do not edit! */
1+ /* auto-generated on 2023-09-19 15:58:51 -0400. Do not edit! */
22/* begin file src/idna.cpp */
33/* begin file src/unicode_transcoding.cpp */
44
@@ -9387,18 +9387,19 @@ bool is_label_valid(const std::u32string_view label) {
93879387
93889388namespace ada::idna {
93899389
9390- bool constexpr begins_with(std::u32string_view view,
9391- std::u32string_view prefix) {
9390+ bool begins_with(std::u32string_view view, std::u32string_view prefix) {
93929391 if (view.size() < prefix.size()) {
93939392 return false;
93949393 }
9394+ // constexpr as of C++20
93959395 return std::equal(prefix.begin(), prefix.end(), view.begin());
93969396}
93979397
9398- bool constexpr begins_with(std::string_view view, std::string_view prefix) {
9398+ bool begins_with(std::string_view view, std::string_view prefix) {
93999399 if (view.size() < prefix.size()) {
94009400 return false;
94019401 }
9402+ // constexpr as of C++20
94029403 return std::equal(prefix.begin(), prefix.end(), view.begin());
94039404}
94049405
You can’t perform that action at this time.
0 commit comments