We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8fd0024 commit 77ff26aCopy full SHA for 77ff26a
include/ada/url_pattern_init.h
@@ -11,6 +11,7 @@
11
#include <string_view>
12
#include <string>
13
#include <optional>
14
+#include <iostream>
15
16
#if ADA_TESTING
17
#include <iostream>
@@ -40,6 +41,17 @@ struct url_pattern_init {
40
41
pattern,
42
};
43
44
+ friend std::ostream& operator<<(std::ostream& os, process_type type) {
45
+ switch (type) {
46
+ case process_type::url:
47
+ return os << "url";
48
+ case process_type::pattern:
49
+ return os << "pattern";
50
+ default:
51
+ return os << "unknown";
52
+ }
53
54
+
55
// All strings must be valid UTF-8.
56
// @see https://urlpattern.spec.whatwg.org/#process-a-urlpatterninit
57
static tl::expected<url_pattern_init, errors> process(
0 commit comments