Sha256: 5917a451a90346fb326f3b2f673cfcc0779286f420850e3e6bff81f9ac631cf2

Contents?: true

Size: 1.14 KB

Versions: 10

Compression:

Stored size: 1.14 KB

Contents

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

#ifndef TAO_JSON_PEGTL_FILE_INPUT_HPP
#define TAO_JSON_PEGTL_FILE_INPUT_HPP

#include "config.hpp"
#include "eol.hpp"
#include "tracking_mode.hpp"

#if defined( __unix__ ) || ( defined( __APPLE__ ) && defined( __MACH__ ) )
#include <unistd.h>  // Required for _POSIX_MAPPED_FILES
#endif

#if defined( _POSIX_MAPPED_FILES ) || defined( _WIN32 )
#include "mmap_input.hpp"
#else
#include "read_input.hpp"
#endif

namespace TAO_JSON_PEGTL_NAMESPACE
{
#if defined( _POSIX_MAPPED_FILES ) || defined( _WIN32 )
   template< tracking_mode P = tracking_mode::eager, typename Eol = eol::lf_crlf >
   struct file_input
      : mmap_input< P, Eol >
   {
      using mmap_input< P, Eol >::mmap_input;
   };
#else
   template< tracking_mode P = tracking_mode::eager, typename Eol = eol::lf_crlf >
   struct file_input
      : read_input< P, Eol >
   {
      using read_input< P, Eol >::read_input;
   };
#endif

   template< typename... Ts >
   explicit file_input( Ts&&... ) -> file_input<>;

}  // namespace TAO_JSON_PEGTL_NAMESPACE

#endif

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
couchbase-3.2.0-universal-darwin-20 ext/third_party/json/include/tao/json/external/pegtl/file_input.hpp
couchbase-3.2.0 ext/third_party/json/include/tao/json/external/pegtl/file_input.hpp
couchbase-3.1.1 ext/third_party/json/include/tao/json/external/pegtl/file_input.hpp
couchbase-3.1.1-universal-darwin-20 ext/third_party/json/include/tao/json/external/pegtl/file_input.hpp
couchbase-3.1.0 ext/third_party/json/include/tao/json/external/pegtl/file_input.hpp
couchbase-3.0.3 ext/third_party/json/include/tao/json/external/pegtl/file_input.hpp
couchbase-3.0.3-universal-darwin-20 ext/third_party/json/include/tao/json/external/pegtl/file_input.hpp
couchbase-3.0.2 ext/third_party/json/include/tao/json/external/pegtl/file_input.hpp
couchbase-3.0.1-universal-darwin-19 ext/third_party/json/include/tao/json/external/pegtl/file_input.hpp
couchbase-3.0.1 ext/third_party/json/include/tao/json/external/pegtl/file_input.hpp