DAW JSON Link
daw_json_parse_string_need_slow.h
Go to the documentation of this file.
1 // Copyright (c) Darrell Wright
2 //
3 // Distributed under the Boost Software License, Version 1.0. (See accompanying
4 // file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
5 //
6 // Official repository: https://github.com/beached/daw_json_link
7 //
8 
9 #pragma once
10 
11 #include "version.h"
12 
13 #include <cstddef>
14 
15 namespace daw::json {
16  inline namespace DAW_JSON_VER {
17  namespace json_details {
18  /***
19  * When skip_string encounters escaping, it will note this as a non-zero
20  * value
21  */
22  template<typename ParseState>
23  DAW_ATTRIB_INLINE constexpr bool
24  needs_slow_path( ParseState const &parse_state ) {
25  return static_cast<std::ptrdiff_t>( parse_state.counter ) >= 0;
26  }
27  } // namespace json_details
28  } // namespace DAW_JSON_VER
29 } // namespace daw::json
Customization point traits.
#define DAW_JSON_VER
The version string used in namespace definitions. Must be a valid namespace name.
Definition: version.h:25