Sha256: 209cc8a04d30dde5761515b8e17a14e0015722e544f6ee981a176f5a9074f09a

Contents?: true

Size: 1.26 KB

Versions: 34

Compression:

Stored size: 1.26 KB

Contents

// Copyright (c) 2017-2020 Dr. Colin Hirsch and Daniel Frey
// Please see LICENSE for license or visit https://github.com/taocpp/json/

#ifndef TAO_JSON_JAXN_INTERNAL_UNESCAPE_ACTION_HPP
#define TAO_JSON_JAXN_INTERNAL_UNESCAPE_ACTION_HPP

#include "../../external/pegtl/contrib/unescape.hpp"
#include "../../external/pegtl/nothing.hpp"

#include "grammar.hpp"

namespace tao::json::jaxn::internal
{
   // clang-format off
   template< typename Rule > struct unescape_action : pegtl::nothing< Rule > {};

   template<> struct unescape_action< rules::escaped_char > : pegtl::unescape::unescape_c< rules::escaped_char, '"', '\'', '\\', '/', '\b', '\f', '\n', '\r', '\t', '\v', '\0' > {};
   template<> struct unescape_action< rules::escaped_unicode > : pegtl::unescape::unescape_j {};
   template<> struct unescape_action< rules::escaped_unicode_code_point_content > : pegtl::unescape::unescape_u {};

   template<> struct unescape_action< rules::identifier > : pegtl::unescape::append_all {};  // For parts_parser.
   template< char D > struct unescape_action< rules::unescaped< D > > : pegtl::unescape::append_all {};
   template< char D > struct unescape_action< rules::mchars< D > > : pegtl::unescape::append_all {};
   // clang-format on

}  // namespace tao::json::jaxn::internal

#endif

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
couchbase-3.2.0-universal-darwin-20 ext/third_party/json/include/tao/json/jaxn/internal/unescape_action.hpp
couchbase-3.2.0 ext/third_party/json/include/tao/json/jaxn/internal/unescape_action.hpp
couchbase-3.1.1 ext/third_party/json/include/tao/json/jaxn/internal/unescape_action.hpp
couchbase-3.1.1-universal-darwin-20 ext/third_party/json/include/tao/json/jaxn/internal/unescape_action.hpp
couchbase-3.1.0 ext/third_party/json/include/tao/json/jaxn/internal/unescape_action.hpp
couchbase-3.0.3 ext/third_party/json/include/tao/json/jaxn/internal/unescape_action.hpp
couchbase-3.0.3-universal-darwin-20 ext/third_party/json/include/tao/json/jaxn/internal/unescape_action.hpp
couchbase-3.0.2 ext/third_party/json/include/tao/json/jaxn/internal/unescape_action.hpp
couchbase-3.0.1-universal-darwin-19 ext/third_party/json/include/tao/json/jaxn/internal/unescape_action.hpp
couchbase-3.0.1 ext/third_party/json/include/tao/json/jaxn/internal/unescape_action.hpp
couchbase-3.0.0-universal-darwin-19 ext/third_party/json/include/tao/json/jaxn/internal/unescape_action.hpp
couchbase-3.0.0 ext/third_party/json/include/tao/json/jaxn/internal/unescape_action.hpp
couchbase-3.0.0.beta.1-universal-darwin-19 ext/third_party/json/include/tao/json/jaxn/internal/unescape_action.hpp
couchbase-3.0.0.beta.1 ext/third_party/json/include/tao/json/jaxn/internal/unescape_action.hpp
couchbase-3.0.0.alpha.5-x86_64-linux ext/third_party/json/include/tao/json/jaxn/internal/unescape_action.hpp
couchbase-3.0.0.alpha.5-universal-darwin-19 ext/third_party/json/include/tao/json/jaxn/internal/unescape_action.hpp
couchbase-3.0.0.alpha.5-x86_64-darwin-19 ext/third_party/json/include/tao/json/jaxn/internal/unescape_action.hpp
couchbase-3.0.0.alpha.5 ext/third_party/json/include/tao/json/jaxn/internal/unescape_action.hpp
couchbase-3.0.0.alpha.4-x86_64-linux ext/third_party/json/include/tao/json/jaxn/internal/unescape_action.hpp
couchbase-3.0.0.alpha.4-x86_64-darwin-19 ext/third_party/json/include/tao/json/jaxn/internal/unescape_action.hpp