Line | Branch | Exec | Source |
---|---|---|---|
1 | // | ||
2 | // Copyright (c) 2021 Vinnie Falco (vinnie.falco@gmail.com) | ||
3 | // | ||
4 | // Distributed under the Boost Software License, Version 1.0. (See accompanying | ||
5 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | ||
6 | // | ||
7 | // Official repository: https://github.com/cppalliance/http_proto | ||
8 | // | ||
9 | |||
10 | #ifndef BOOST_HTTP_PROTO_RFC_DETAIL_WS_HPP | ||
11 | #define BOOST_HTTP_PROTO_RFC_DETAIL_WS_HPP | ||
12 | |||
13 | namespace boost { | ||
14 | namespace http_proto { | ||
15 | namespace detail { | ||
16 | |||
17 | // WS = SP / HTAB | ||
18 | struct ws_t | ||
19 | { | ||
20 | constexpr | ||
21 | bool | ||
22 | 99225 | operator()(char c) const noexcept | |
23 | { | ||
24 |
4/4✓ Branch 0 taken 83407 times.
✓ Branch 1 taken 15818 times.
✓ Branch 2 taken 535 times.
✓ Branch 3 taken 82872 times.
|
99225 | return c == ' ' || c == '\t'; |
25 | } | ||
26 | }; | ||
27 | |||
28 | constexpr ws_t ws{}; | ||
29 | |||
30 | } // detail | ||
31 | } // http_proto | ||
32 | } // boost | ||
33 | |||
34 | #endif | ||
35 |