Statistics
| Revision:

root / tmp / org.txm.statsengine.r.core.win32 / res / win32 / library / BH / include / boost / archive / wcslen.hpp @ 2486

History | View | Annotate | Download (1.3 kB)

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