File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -54,9 +54,10 @@ inline constexpr bool is_normalized_windows_drive_letter(
54
54
return input.size () >= 2 && (is_alpha (input[0 ]) && (input[1 ] == ' :' ));
55
55
}
56
56
57
- ada_really_inline constexpr bool begins_with (std::string_view view,
58
- std::string_view prefix) {
57
+ ada_really_inline bool begins_with (std::string_view view,
58
+ std::string_view prefix) {
59
59
// in C++20, you have view.begins_with(prefix)
60
+ // std::equal is constexpr in C++20
60
61
return view.size () >= prefix.size () &&
61
62
std::equal (prefix.begin (), prefix.end (), view.begin ());
62
63
}
Original file line number Diff line number Diff line change @@ -70,10 +70,10 @@ inline constexpr bool is_normalized_windows_drive_letter(
70
70
std::string_view input) noexcept ;
71
71
72
72
/* *
73
- * @warning Will be removed when Ada supports C++20.
73
+ * @warning Will be removed when Ada requires C++20.
74
74
*/
75
- ada_really_inline constexpr bool begins_with (std::string_view view,
76
- std::string_view prefix);
75
+ ada_really_inline bool begins_with (std::string_view view,
76
+ std::string_view prefix);
77
77
78
78
/* *
79
79
* Returns true if an input is an ipv4 address.
You can’t perform that action at this time.
0 commit comments