/[ghosts]/ghosts/gedcomparser/src/GEDCOMParser/DateManagement/Date.cpp
ViewVC logotype

Diff of /ghosts/gedcomparser/src/GEDCOMParser/DateManagement/Date.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1.2.3 by cpcp, Wed Oct 23 21:27:19 2002 UTC revision 1.1.2.4 by cpcp, Sun Oct 27 09:45:01 2002 UTC
# Line 60  void GEDCOMParser::DateManagement::Date: Line 60  void GEDCOMParser::DateManagement::Date:
60    return;    return;
61  }  }
62    
63    void GEDCOMParser::DateManagement::Date::setFrenchYearFormat(enumFrenchYearFormat format)
64    {
65      _french_year_format = format;
66      return;
67    }
68    
69  std::string const GEDCOMParser::DateManagement::Date::getDisplayValue(void) const  std::string const GEDCOMParser::DateManagement::Date::getDisplayValue(void) const
70  {  {
71    std::string res;    std::string res;
72    std::string month;    std::string month;
73      std::string year;
74    std::string precision;    std::string precision;
75      
76      year = _year;
77    
78      switch (_calendar)
79        {
80        case e_French:
81          {
82            if (_french_year_format == e_FrenchYearFormat_Roman)
83              {
84                year = _("AN " ) + year;
85              }
86          }
87          break;
88        default:
89          break;
90        };
91    switch(_month)    switch(_month)
92      {      {
93      case e_Jan:      case e_Jan:
# Line 208  std::string const GEDCOMParser::DateMana Line 230  std::string const GEDCOMParser::DateMana
230      {      {
231        day_month_separator = " ";        day_month_separator = " ";
232      }      }
233    if ((month != "") && (_year != ""))    if ((month != "") && (year != ""))
234      {      {
235        month_year_separator = " ";        month_year_separator = " ";
236      }      }
237        
238    res = precision + _day + day_month_separator + month + month_year_separator + _year;    res = precision + _day + day_month_separator + month + month_year_separator + year;
239    return res;    return res;
240  }  }
241    

Legend:
Removed from v.1.1.2.3  
changed lines
  Added in v.1.1.2.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26