• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* Copyright (c) 2002-2004 CrystalClear Software, Inc.
2  * Use, modification and distribution is subject to the
3  * Boost Software License, Version 1.0. (See accompanying
4  * file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
5  * Author: Jeff Garland, Bart Garst
6  * $Date$
7  */
8 
9 
10 
11 #ifndef BOOST_DATE_TIME_SOURCE
12 #define BOOST_DATE_TIME_SOURCE
13 #endif
14 #include "boost/date_time/gregorian/greg_weekday.hpp"
15 
16 #include "greg_names.hpp"
17 
18 namespace boost {
19 namespace gregorian {
20 
21   //! Return a 3 digit english string of the day of week (eg: Sun)
22   const char*
as_short_string() const23   greg_weekday::as_short_string() const
24   {
25     return short_weekday_names[value_];
26   }
27   //! Return a point to a long english string representing day of week
28   const char*
as_long_string() const29   greg_weekday::as_long_string()  const
30   {
31     return long_weekday_names[value_];
32   }
33 
34 #ifndef BOOST_NO_STD_WSTRING
35   //! Return a 3 digit english wchar_t string of the day of week (eg: Sun)
36   const wchar_t*
as_short_wstring() const37   greg_weekday::as_short_wstring() const
38   {
39     return w_short_weekday_names[value_];
40   }
41   //! Return a point to a long english wchar_t string representing day of week
42   const wchar_t*
as_long_wstring() const43   greg_weekday::as_long_wstring()  const
44   {
45     return w_long_weekday_names[value_];
46   }
47 #endif // BOOST_NO_STD_WSTRING
48 
49 } } //namespace gregorian
50 
51