MCPcopy Create free account
hub / github.com/ada-url/ada / init_data

Function init_data

benchmarks/urlpattern.cpp:37–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35double url_examples_bytes;
36
37size_t init_data() {
38 // compute the number of bytes.
39 auto compute = []() -> double {
40 size_t bytes{0};
41 for (const auto& [base, input] : url_pattern_examples) {
42 bytes += base.size() + input.size();
43 }
44 return double(bytes);
45 };
46
47 url_examples_bytes = compute();
48 return url_pattern_examples.size();
49}
50
51size_t count_urlpattern_parse_invalid() {
52 size_t how_many = 0;

Callers 1

mainFunction · 0.70

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected