Support wide streams
This commit is contained in:
1 parent
1de4e4a150
commit
b3b39b0ae6
2 files changed
+253
-92
No files matched your search
@@ -26,7 +26,7 @@
|
||||
<br/>
|
||||
<br/>
|
||||
<a href="mailto:howard.hinnant@gmail.com">Howard E. Hinnant</a><br/>
|
||||
2016-05-22<br/>
|
||||
2016-05-28<br/>
|
||||
<a rel="license" href="http://creativecommons.org/licenses/by/4.0/"> <img alt="Creative
|
||||
Commons License" style="border-width:0"
|
||||
src="http://i.creativecommons.org/l/by/4.0/80x15.png" /></a><br /> This work is licensed
|
||||
@@ -1831,9 +1831,9 @@ operator!=(const zoned_time<Duration1>& x, const zoned_time<Duratio
|
||||
</blockquote>
|
||||
|
||||
<pre>
|
||||
template <class Duration>
|
||||
std::ostream&
|
||||
operator<<(std::ostream& os, const zoned_time<Duration>& t)
|
||||
template <class CharT, class Traits, class Duration>
|
||||
std::basic_ostream<class CharT, class Traits>&
|
||||
operator<<(std::basic_ostream<class CharT, class Traits>& os, const zoned_time<Duration>& t)
|
||||
</pre>
|
||||
<blockquote>
|
||||
<p>
|
||||
@@ -1985,29 +1985,58 @@ make_zoned(const std::string& name, const sys_time<Duration>& st)
|
||||
<a name="format"></a><h3><code>format</code></h3>
|
||||
<blockquote>
|
||||
<pre>
|
||||
template <class Duration>
|
||||
std::string
|
||||
format(const std::locale& loc, std::string format, local_time<Duration> tp);
|
||||
template <class CharT, class Traits, class Duration>
|
||||
std::basic_string<class CharT, class Traits>
|
||||
format(const std::locale& loc, std::basic_string<class CharT, class Traits> format,
|
||||
local_time<Duration> tp);
|
||||
|
||||
template <class Duration>
|
||||
std::string
|
||||
format(std::string format, local_time<Duration> tp);
|
||||
template <class CharT, class Traits, class Duration>
|
||||
std::basic_string<class CharT, class Traits>
|
||||
format(std::basic_string<class CharT, class Traits> format, local_time<Duration> tp);
|
||||
|
||||
template <class Duration>
|
||||
std::string
|
||||
format(const std::locale& loc, std::string format, const zoned_time<Duration>& tp);
|
||||
template <class CharT, class Traits, class Duration>
|
||||
std::basic_string<class CharT, class Traits>
|
||||
format(const std::locale& loc, std::basic_string<class CharT, class Traits> format,
|
||||
const zoned_time<Duration>& tp);
|
||||
|
||||
template <class Duration>
|
||||
std::string
|
||||
format(std::string format, const zoned_time<Duration>& tp);
|
||||
template <class CharT, class Traits, class Duration>
|
||||
std::basic_string<class CharT, class Traits>
|
||||
format(std::basic_string<class CharT, class Traits> format, const zoned_time<Duration>& tp);
|
||||
|
||||
template <class Duration>
|
||||
std::string
|
||||
format(const std::locale& loc, std::string format, sys_time<Duration> tp);
|
||||
template <class CharT, class Traits, class Duration>
|
||||
std::basic_string<class CharT, class Traits>
|
||||
format(const std::locale& loc, std::basic_string<class CharT, class Traits> format,
|
||||
sys_time<Duration> tp);
|
||||
|
||||
template <class Duration>
|
||||
std::string
|
||||
format(std::string format, sys_time<Duration> tp);
|
||||
template <class CharT, class Traits, class Duration>
|
||||
std::basic_string<class CharT, class Traits>
|
||||
format(std::basic_string<class CharT, class Traits> format, sys_time<Duration> tp);
|
||||
|
||||
// const CharT* formats
|
||||
|
||||
template <class CharT, class Duration>
|
||||
std::basic_string<class CharT>
|
||||
format(const std::locale& loc, const CharT* format, local_time<Duration> tp);
|
||||
|
||||
template <class CharT, class Duration>
|
||||
std::basic_string<class CharT>
|
||||
format(const CharT* format, local_time<Duration> tp);
|
||||
|
||||
template <class CharT, class Duration>
|
||||
std::basic_string<class CharT>
|
||||
format(const std::locale& loc, const CharT* format, const zoned_time<Duration>& tp);
|
||||
|
||||
template <class CharT, class Duration>
|
||||
std::basic_string<class CharT>
|
||||
format(const CharT* format, const zoned_time<Duration>& tp);
|
||||
|
||||
template <class CharT, class Duration>
|
||||
std::basic_string<class CharT>
|
||||
format(const std::locale& loc, const CharT* format, sys_time<Duration> tp);
|
||||
|
||||
template <class CharT, class Duration>
|
||||
std::basic_string<class CharT>
|
||||
format(const CharT* format, sys_time<Duration> tp);
|
||||
</pre>
|
||||
<blockquote>
|
||||
<p>
|
||||
@@ -2097,53 +2126,116 @@ UTC offset (formatted as <code>+0000</code>), or one can pass in both in either
|
||||
</p>
|
||||
|
||||
<pre>
|
||||
template <class Duration>
|
||||
template <class CharT, class Traits, class Duration>
|
||||
void
|
||||
parse(std::istream& is, const std::string& format, sys_time<Duration>& tp);
|
||||
parse(std::basic_istream<CharT, Traits>& is,
|
||||
const std::basic_string<CharT, Traits>& format, sys_time<Duration>& tp);
|
||||
|
||||
template <class Duration>
|
||||
template <class CharT, class Traits, class Duration>
|
||||
void
|
||||
parse(std::istream& is, const std::string& format, sys_time<Duration>& tp,
|
||||
std::string& abbrev);
|
||||
parse(std::basic_istream<CharT, Traits>& is,
|
||||
const std::basic_string<CharT, Traits>& format, sys_time<Duration>& tp,
|
||||
std::basic_string<CharT, Traits>& abbrev);
|
||||
|
||||
template <class Duration>
|
||||
template <class CharT, class Traits, class Duration>
|
||||
void
|
||||
parse(std::istream& is, const std::string& format, sys_time<Duration>& tp,
|
||||
parse(std::basic_istream<CharT, Traits>& is,
|
||||
const std::basic_string<CharT, Traits>& format, sys_time<Duration>& tp,
|
||||
std::chrono::minutes& offset);
|
||||
|
||||
template <class Duration>
|
||||
template <class CharT, class Traits, class Duration>
|
||||
void
|
||||
parse(std::istream& is, const std::string& format, sys_time<Duration>& tp,
|
||||
std::string& abbrev, std::chrono::minutes& offset);
|
||||
parse(std::basic_istream<CharT, Traits>& is,
|
||||
const std::basic_string<CharT, Traits>& format, sys_time<Duration>& tp,
|
||||
std::basic_string<CharT, Traits>& abbrev, std::chrono::minutes& offset);
|
||||
|
||||
template <class Duration>
|
||||
template <class CharT, class Traits, class Duration>
|
||||
void
|
||||
parse(std::istream& is, const std::string& format, sys_time<Duration>& tp,
|
||||
std::chrono::minutes& offset, std::string& abbrev);
|
||||
parse(std::basic_istream<CharT, Traits>& is,
|
||||
const std::basic_string<CharT, Traits>& format, sys_time<Duration>& tp,
|
||||
std::chrono::minutes& offset, std::basic_string<CharT, Traits>& abbrev);
|
||||
|
||||
template <class Duration>
|
||||
template <class CharT, class Traits, class Duration>
|
||||
void
|
||||
parse(std::istream& is, const std::string& format, local_time<Duration>& tp);
|
||||
parse(std::basic_istream<CharT, Traits>& is,
|
||||
const std::basic_string<CharT, Traits>& format, local_time<Duration>& tp);
|
||||
|
||||
template <class Duration>
|
||||
template <class CharT, class Traits, class Duration>
|
||||
void
|
||||
parse(std::istream& is, const std::string& format, local_time<Duration>& tp,
|
||||
std::string& abbrev);
|
||||
parse(std::basic_istream<CharT, Traits>& is,
|
||||
const std::basic_string<CharT, Traits>& format, local_time<Duration>& tp,
|
||||
std::basic_string<CharT, Traits>& abbrev);
|
||||
|
||||
template <class Duration>
|
||||
template <class CharT, class Traits, class Duration>
|
||||
void
|
||||
parse(std::istream& is, const std::string& format, local_time<Duration>& tp,
|
||||
parse(std::basic_istream<CharT, Traits>& is,
|
||||
const std::basic_string<CharT, Traits>& format, local_time<Duration>& tp,
|
||||
std::chrono::minutes& offset);
|
||||
|
||||
template <class Duration>
|
||||
template <class CharT, class Traits, class Duration>
|
||||
void
|
||||
parse(std::istream& is, const std::string& format, local_time<Duration>& tp,
|
||||
std::string& abbrev, std::chrono::minutes& offset);
|
||||
parse(std::basic_istream<CharT, Traits>& is,
|
||||
const std::basic_string<CharT, Traits>& format, local_time<Duration>& tp,
|
||||
std::basic_string<CharT, Traits>& abbrev, std::chrono::minutes& offset);
|
||||
|
||||
template <class Duration>
|
||||
template <class CharT, class Traits, class Duration>
|
||||
void
|
||||
parse(std::istream& is, const std::string& format, local_time<Duration>& tp,
|
||||
std::chrono::minutes& offset, std::string& abbrev);
|
||||
parse(std::basic_istream<CharT, Traits>& is,
|
||||
const std::basic_string<CharT, Traits>& format, local_time<Duration>& tp,
|
||||
std::chrono::minutes& offset, std::basic_string<CharT, Traits>& abbrev);
|
||||
|
||||
// const CharT* formats
|
||||
|
||||
template <class CharT, class Traits, class Duration>
|
||||
void
|
||||
parse(std::basic_istream<CharT, Traits>& is, const CharT* format, sys_time<Duration>& tp);
|
||||
|
||||
template <class CharT, class Traits, class Duration>
|
||||
void
|
||||
parse(std::basic_istream<CharT, Traits>& is, const CharT* format, sys_time<Duration>& tp,
|
||||
std::basic_string<CharT, Traits>& abbrev);
|
||||
|
||||
template <class CharT, class Traits, class Duration>
|
||||
void
|
||||
parse(std::basic_istream<CharT, Traits>& is, const CharT* format, sys_time<Duration>& tp,
|
||||
std::chrono::minutes& offset);
|
||||
|
||||
template <class CharT, class Traits, class Duration>
|
||||
void
|
||||
parse(std::basic_istream<CharT, Traits>& is, const CharT* format, sys_time<Duration>& tp,
|
||||
std::basic_string<CharT, Traits>& abbrev, std::chrono::minutes& offset);
|
||||
|
||||
template <class CharT, class Traits, class Duration>
|
||||
void
|
||||
parse(std::basic_istream<CharT, Traits>& is, const CharT* format, sys_time<Duration>& tp,
|
||||
std::chrono::minutes& offset, std::basic_string<CharT, Traits>& abbrev);
|
||||
|
||||
template <class CharT, class Traits, class Duration>
|
||||
void
|
||||
parse(std::basic_istream<CharT, Traits>& is, const CharT* format,
|
||||
local_time<Duration>& tp);
|
||||
|
||||
template <class CharT, class Traits, class Duration>
|
||||
void
|
||||
parse(std::basic_istream<CharT, Traits>& is, const CharT* format,
|
||||
local_time<Duration>& tp, std::basic_string<CharT, Traits>& abbrev);
|
||||
|
||||
template <class CharT, class Traits, class Duration>
|
||||
void
|
||||
parse(std::basic_istream<CharT, Traits>& is, const CharT* format,
|
||||
local_time<Duration>& tp, std::chrono::minutes& offset);
|
||||
|
||||
template <class CharT, class Traits, class Duration>
|
||||
void
|
||||
parse(std::basic_istream<CharT, Traits>& is, const CharT* format,
|
||||
local_time<Duration>& tp, std::basic_string<CharT, Traits>& abbrev,
|
||||
std::chrono::minutes& offset);
|
||||
|
||||
template <class CharT, class Traits, class Duration>
|
||||
void
|
||||
parse(std::basic_istream<CharT, Traits>& is, const CharT* format,
|
||||
local_time<Duration>& tp, std::chrono::minutes& offset,
|
||||
std::basic_string<CharT, Traits>& abbrev);
|
||||
</pre>
|
||||
<blockquote>
|
||||
<p>
|
||||
|
||||
Reference in new issue
Block a user