Skip to content

Commit f1751ca

Browse files
authored
chore: update ada-idna to latest version (#517)
1 parent 7e8133d commit f1751ca

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

include/ada/ada_idna.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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
120120
bool 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

126125
bool constexpr is_ascii(std::u32string_view view);
127126
bool constexpr is_ascii(std::string_view view);

src/ada_idna.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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

93889388
namespace 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

0 commit comments

Comments
 (0)