Implementation of set_week_day method.
| 17 | |
| 18 | // Implementation of set_week_day method. |
| 19 | curl::cookie_date *curl::cookie_date::set_week_day(const unsigned int weekDay) NOEXCEPT { |
| 20 | try { |
| 21 | this->week_day = details::weekdayNames.at(weekDay); |
| 22 | } catch (const out_of_range &) { |
| 23 | this->week_day = "Mon"; |
| 24 | } |
| 25 | return this; |
| 26 | } |
| 27 | |
| 28 | // Implementation of set_day method. |
| 29 | curl::cookie_date *curl::cookie_date::set_day(const unsigned int cookieDay) NOEXCEPT { |