| 1 | // |
| 2 | // Copyright (c) 2009-2011 Artyom Beilis (Tonkikh) |
| 3 | // |
| 4 | // Distributed under the Boost Software License, Version 1.0. |
| 5 | // https://www.boost.org/LICENSE_1_0.txt |
| 6 | |
| 7 | #ifndef BOOST_LOCALE_IMPL_ICU_GET_TIME_ZONE_HPP |
| 8 | #define BOOST_LOCALE_IMPL_ICU_GET_TIME_ZONE_HPP |
| 9 | |
| 10 | #include <boost/locale/config.hpp> |
| 11 | #include <cstdint> // Avoid ICU defining e.g. INT8_MIN causing macro redefinition warnings |
| 12 | #include <string> |
| 13 | #include <unicode/timezone.h> |
| 14 | |
| 15 | namespace boost { namespace locale { namespace impl_icu { |
| 16 | |
| 17 | // Provides a workaround for an ICU default timezone bug and also |
| 18 | // handles time_zone string correctly - if empty returns default |
| 19 | // otherwise returns the instance created with time_zone |
| 20 | icu::TimeZone* get_time_zone(const std::string& time_zone); |
| 21 | }}} // namespace boost::locale::impl_icu |
| 22 | #endif |
| 23 | |