OutItrT put_partial_date(OutItrT next, std::ios_base& a_ios,
                          CharT a_fill, const partial_date_type& pd,
                          const facet_type& facet) const
 {
   facet.put(next, a_ios, a_fill, pd.day());
   next = a_fill; //TODO change this ???
   facet.put(next, a_ios, a_fill, pd.month());
   return next;
 }
 OutItrT put_last_kday(OutItrT next, std::ios_base& a_ios,
                      CharT a_fill, const last_kday_type& lkd,
                      const facet_type& facet) const
 {
   put_string(next, phrase_strings[last]);
   next = a_fill; //TODO change this ???
   facet.put(next, a_ios, a_fill, lkd.day_of_week());
   next = a_fill; //TODO change this ???
   put_string(next, string_type(of_string));
   next = a_fill; //TODO change this ???
   facet.put(next, a_ios, a_fill, lkd.month());
   return next;
 }
Ejemplo n.º 3
0
 OutItrT put_period(OutItrT next,
                    std::ios_base& a_ios,
                    char_type a_fill,
                    const period_type& p,
                    const facet_type& facet) const {
     put_period_start_delimeter(next);
     next = facet.put(next, a_ios, a_fill, p.begin());
     put_period_separator(next);
     if (m_range_option == AS_CLOSED_RANGE) {
         facet.put(next, a_ios, a_fill, p.last());
     }
     else {
         facet.put(next, a_ios, a_fill, p.end());
     }
     put_period_end_delimeter(next);
     return next;
 }
 OutItrT put_kday_after(OutItrT next, std::ios_base& a_ios,
                        CharT a_fill, const kday_after_type& fka,
                        const facet_type& facet) const
 {
   facet.put(next, a_ios, a_fill, fka.day_of_week());
   next = a_fill; //TODO change this ???
   put_string(next, phrase_strings[after]);
   return next;
 }