KiCad PCB EDA Suite
|
Static Public Member Functions | |
static auto | DaysToYmd (int aDaysSinceEpoch) -> std::tuple< int, int, int > |
static auto | YmdToDays (int aYear, int aMonth, int aDay) -> int |
static auto | ParseDate (const std::string &aDateStr) -> std::optional< int > |
static auto | FormatDate (int aDaysSinceEpoch, const std::string &aFormat) -> std::string |
static auto | GetWeekdayName (int aDaysSinceEpoch) -> std::string |
static auto | GetCurrentDays () -> int |
static auto | GetCurrentTimestamp () -> double |
Static Private Member Functions | |
static auto | isLeapYear (int aYear) -> bool |
static auto | daysInYear (int aYear) -> int |
static auto | daysInMonthForYear (int aMonth, int aYear) -> int |
Static Private Attributes | |
static constexpr int | epochYear = 1970 |
static constexpr std::array< int, 12 > | daysInMonth = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31} |
static constexpr std::array< const char *, 12 > | monthNames |
static constexpr std::array< const char *, 12 > | monthAbbrev |
static constexpr std::array< const char *, 7 > | weekdayNames |
Definition at line 29 of file text_eval_parser.cpp.
|
inlinestaticprivate |
Definition at line 56 of file text_eval_parser.cpp.
References daysInMonth, and isLeapYear().
Referenced by DaysToYmd(), ParseDate(), and YmdToDays().
|
inlinestaticprivate |
Definition at line 51 of file text_eval_parser.cpp.
References isLeapYear().
Referenced by DaysToYmd(), and YmdToDays().
|
inlinestatic |
Definition at line 65 of file text_eval_parser.cpp.
References daysInMonthForYear(), daysInYear(), and epochYear.
Referenced by FormatDate().
|
inlinestatic |
Definition at line 273 of file text_eval_parser.cpp.
References DaysToYmd(), monthAbbrev, and monthNames.
Referenced by calc_parser::EVAL_VISITOR::evaluateFunction().
|
inlinestatic |
Definition at line 307 of file text_eval_parser.cpp.
Referenced by calc_parser::EVAL_VISITOR::evaluateFunction().
|
inlinestatic |
Definition at line 314 of file text_eval_parser.cpp.
Referenced by calc_parser::EVAL_VISITOR::evaluateFunction().
|
inlinestatic |
Definition at line 297 of file text_eval_parser.cpp.
References weekdayNames.
Referenced by calc_parser::EVAL_VISITOR::evaluateFunction().
|
inlinestaticprivate |
Definition at line 46 of file text_eval_parser.cpp.
Referenced by daysInMonthForYear(), and daysInYear().
|
inlinestatic |
Definition at line 120 of file text_eval_parser.cpp.
References daysInMonthForYear(), and YmdToDays().
Referenced by calc_parser::EVAL_VISITOR::evaluateFunction().
|
inlinestatic |
Definition at line 98 of file text_eval_parser.cpp.
References daysInMonthForYear(), daysInYear(), and epochYear.
Referenced by ParseDate().
|
staticconstexprprivate |
Definition at line 33 of file text_eval_parser.cpp.
Referenced by daysInMonthForYear().
|
staticconstexprprivate |
Definition at line 32 of file text_eval_parser.cpp.
Referenced by DaysToYmd(), and YmdToDays().
|
staticconstexprprivate |
Definition at line 38 of file text_eval_parser.cpp.
Referenced by FormatDate().
|
staticconstexprprivate |
Definition at line 34 of file text_eval_parser.cpp.
Referenced by FormatDate().
|
staticconstexprprivate |
Definition at line 42 of file text_eval_parser.cpp.
Referenced by GetWeekdayName().