~ubuntu-branches/ubuntu/wily/davix/wily

« back to all changes in this revision

Viewing changes to deps/boost_intern/src/date_time/src/gregorian/greg_weekday.cpp

  • Committer: Package Import Robot
  • Author(s): Mattias Ellert
  • Date: 2015-07-31 13:17:55 UTC
  • mfrom: (5.1.3 sid)
  • Revision ID: package-import@ubuntu.com-20150731131755-mizprbmn7ogv33te
Tags: 0.4.1-1
* Update to version 0.4.1
* Implement Multi-Arch support

Show diffs side-by-side

added added

removed removed

Lines of Context:
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: 2008-02-27 12:00:24 -0800 (Wed, 27 Feb 2008) $
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*
23
 
  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*
29
 
  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*
37
 
  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*
43
 
  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