annotate DEPENDENCIES/generic/include/boost/archive/wcslen.hpp @ 125:34e428693f5d vext

Vext -> Repoint
author Chris Cannam
date Thu, 14 Jun 2018 11:15:39 +0100
parents c530137014c0
children
rev   line source
Chris@16 1 #ifndef BOOST_ARCHIVE_WCSLEN_HPP
Chris@16 2 #define BOOST_ARCHIVE_WCSLEN_HPP
Chris@16 3
Chris@16 4 // MS compatible compilers support #pragma once
Chris@101 5 #if defined(_MSC_VER)
Chris@16 6 # pragma once
Chris@16 7 #endif
Chris@16 8
Chris@16 9 /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
Chris@16 10 // wcslen.hpp:
Chris@16 11
Chris@16 12 // (C) Copyright 2002 Robert Ramey - http://www.rrsd.com .
Chris@16 13 // Use, modification and distribution is subject to the Boost Software
Chris@16 14 // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
Chris@16 15 // http://www.boost.org/LICENSE_1_0.txt)
Chris@16 16
Chris@16 17 // See http://www.boost.org for updates, documentation, and revision history.
Chris@16 18
Chris@16 19 #include <cstddef> // size_t
Chris@16 20 #include <boost/config.hpp>
Chris@16 21 #if defined(BOOST_NO_STDC_NAMESPACE)
Chris@16 22 namespace std{
Chris@16 23 using ::size_t;
Chris@16 24 } // namespace std
Chris@16 25 #endif
Chris@16 26
Chris@16 27 #ifndef BOOST_NO_CWCHAR
Chris@16 28
Chris@16 29 // a couple of libraries which include wchar_t don't include
Chris@16 30 // wcslen
Chris@16 31
Chris@16 32 #if defined(BOOST_DINKUMWARE_STDLIB) && BOOST_DINKUMWARE_STDLIB < 306 \
Chris@16 33 || defined(__LIBCOMO__)
Chris@16 34
Chris@16 35 namespace std {
Chris@16 36 inline std::size_t wcslen(const wchar_t * ws)
Chris@16 37 {
Chris@16 38 const wchar_t * eows = ws;
Chris@16 39 while(* eows != 0)
Chris@16 40 ++eows;
Chris@16 41 return eows - ws;
Chris@16 42 }
Chris@16 43 } // namespace std
Chris@16 44
Chris@16 45 #else
Chris@16 46
Chris@16 47 #include <cwchar>
Chris@16 48 #ifdef BOOST_NO_STDC_NAMESPACE
Chris@16 49 namespace std{ using ::wcslen; }
Chris@16 50 #endif
Chris@16 51
Chris@16 52 #endif // wcslen
Chris@16 53
Chris@16 54 #endif //BOOST_NO_CWCHAR
Chris@16 55
Chris@16 56 #endif //BOOST_ARCHIVE_WCSLEN_HPP