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! */
2
2
/* begin file include/idna.h */
3
3
#ifndef ADA_IDNA_H
4
4
#define ADA_IDNA_H
@@ -119,9 +119,8 @@ std::string to_ascii(std::string_view ut8_string);
119
119
// https://url.spec.whatwg.org/#forbidden-domain-code-point
120
120
bool contains_forbidden_domain_code_point (std::string_view ascii_string);
121
121
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);
125
124
126
125
bool constexpr is_ascii (std::u32string_view view);
127
126
bool 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! */
2
2
/* begin file src/idna.cpp */
3
3
/* begin file src/unicode_transcoding.cpp */
4
4
@@ -9387,18 +9387,19 @@ bool is_label_valid(const std::u32string_view label) {
9387
9387
9388
9388
namespace ada::idna {
9389
9389
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) {
9392
9391
if (view.size() < prefix.size()) {
9393
9392
return false;
9394
9393
}
9394
+ // constexpr as of C++20
9395
9395
return std::equal(prefix.begin(), prefix.end(), view.begin());
9396
9396
}
9397
9397
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) {
9399
9399
if (view.size() < prefix.size()) {
9400
9400
return false;
9401
9401
}
9402
+ // constexpr as of C++20
9402
9403
return std::equal(prefix.begin(), prefix.end(), view.begin());
9403
9404
}
9404
9405
You can’t perform that action at this time.
0 commit comments