100.00% Lines (2/2) 100.00% Functions (1/1)
TLA Baseline Branch
Line Hits Code Line Hits Code
1   // 1   //
2   // Copyright (c) 2021 Vinnie Falco (vinnie.falco@gmail.com) 2   // Copyright (c) 2021 Vinnie Falco (vinnie.falco@gmail.com)
3   // 3   //
4   // Distributed under the Boost Software License, Version 1.0. (See accompanying 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) 5   // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6   // 6   //
7   // Official repository: https://github.com/cppalliance/http 7   // Official repository: https://github.com/cppalliance/http
8   // 8   //
9   9  
10   #ifndef BOOST_HTTP_RFC_DETAIL_WS_HPP 10   #ifndef BOOST_HTTP_RFC_DETAIL_WS_HPP
11   #define BOOST_HTTP_RFC_DETAIL_WS_HPP 11   #define BOOST_HTTP_RFC_DETAIL_WS_HPP
12   12  
13   namespace boost { 13   namespace boost {
14   namespace http { 14   namespace http {
15   namespace detail { 15   namespace detail {
16   16  
17   // WS = SP / HTAB 17   // WS = SP / HTAB
18   struct ws_t 18   struct ws_t
19   { 19   {
20   constexpr 20   constexpr
21   bool 21   bool
HITCBC 22   107944 operator()(char c) const noexcept 22   107989 operator()(char c) const noexcept
23   { 23   {
HITCBC 24   107944 return c == ' ' || c == '\t'; 24   107989 return c == ' ' || c == '\t';
25   } 25   }
26   }; 26   };
27   27  
28   constexpr ws_t ws{}; 28   constexpr ws_t ws{};
29   29  
30   } // detail 30   } // detail
31   } // http 31   } // http
32   } // boost 32   } // boost
33   33  
34   #endif 34   #endif