Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:42:45

0001 //
0002 // Copyright (c) 2012 Artyom Beilis (Tonkikh)
0003 // Copyright (c) 2020 Alexander Grund
0004 //
0005 // Distributed under the Boost Software License, Version 1.0.
0006 // https://www.boost.org/LICENSE_1_0.txt
0007 
0008 #ifndef BOOST_NOWIDE_CSTDIO_HPP_INCLUDED
0009 #define BOOST_NOWIDE_CSTDIO_HPP_INCLUDED
0010 
0011 #include <boost/nowide/config.hpp>
0012 #include <cstdio>
0013 
0014 namespace boost {
0015 namespace nowide {
0016 #if !defined(BOOST_WINDOWS) && !defined(BOOST_NOWIDE_DOXYGEN)
0017     using std::fopen;
0018     using std::freopen;
0019     using std::remove;
0020     using std::rename;
0021 #else
0022 
0023     ///
0024     /// \brief Same as freopen but file_name and mode are UTF-8 strings
0025     ///
0026     BOOST_NOWIDE_DECL FILE* freopen(const char* file_name, const char* mode, FILE* stream);
0027     ///
0028     /// \brief Same as fopen but file_name and mode are UTF-8 strings
0029     ///
0030     BOOST_NOWIDE_DECL FILE* fopen(const char* file_name, const char* mode);
0031     ///
0032     /// \brief Same as rename but old_name and new_name are UTF-8 strings
0033     ///
0034     BOOST_NOWIDE_DECL int rename(const char* old_name, const char* new_name);
0035     ///
0036     /// \brief Same as rename but name is UTF-8 string
0037     ///
0038     BOOST_NOWIDE_DECL int remove(const char* name);
0039 #endif
0040     namespace detail {
0041         BOOST_NOWIDE_DECL FILE* wfopen(const wchar_t* filename, const wchar_t* mode);
0042     }
0043 } // namespace nowide
0044 } // namespace boost
0045 
0046 #endif