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
15namespace 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 inline constexpr bool needs_slow_path( ParseState const &parse_state ) {
24 return static_cast<std::ptrdiff_t>( parse_state.counter ) >= 0;
25 }
26 } // namespace json_details
27 } // namespace DAW_JSON_VER
28} // namespace daw::json
ParseState & parse_state
Definition: daw_json_parse_class.h:182
constexpr bool needs_slow_path(ParseState const &parse_state)
Definition: daw_json_parse_string_need_slow.h:23
Definition: daw_from_json.h:22
#define DAW_JSON_VER
The version string used in namespace definitions. Must be a valid namespace name.
Definition: version.h:16