Skip to content

Commit

Permalink
string type
Browse files Browse the repository at this point in the history
  • Loading branch information
payetvin committed Jul 1, 2024
1 parent 0fc7481 commit 59dbc69
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/libs/antares/date/date.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include <yuni/yuni.h>
#include <yuni/core/string.h>
#include <yuni/io/file.h>
#include <boost/algorithm/string/case_conv.hpp>

#include <antares/date/date.h>
#include <antares/logs/logs.h>
Expand Down Expand Up @@ -137,8 +138,9 @@ bool StringToMonth(MonthName& out, AnyString text)
return false;
}
text.trim();
CString<MONTHS_PER_YEAR, false> t = text;
t.toLower();
std::string t = text;
boost::algorithm::to_lower(t);
/* t.toLower(); */

if (t.size() == 3)
{
Expand Down

0 comments on commit 59dbc69

Please sign in to comment.