mirror of
https://github.com/darlinghq/darling-libcxx.git
synced 2024-11-30 07:10:33 +00:00
Merging r195143:
------------------------------------------------------------------------ r195143 | marshall | 2013-11-19 11:14:27 -0800 (Tue, 19 Nov 2013) | 1 line Fix a test that I broke over the weekend ------------------------------------------------------------------------ git-svn-id: https://llvm.org/svn/llvm-project/libcxx/branches/release_34@195223 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ea97ae3eed
commit
f01e998923
@ -18,16 +18,6 @@
|
||||
|
||||
#if _LIBCPP_STD_VER > 11
|
||||
|
||||
void both_ways ( const char *p ) {
|
||||
std::string str(p);
|
||||
auto q = std::quoted(s);
|
||||
|
||||
std::stringstream ss;
|
||||
bool skippingws = is_skipws ( &ss );
|
||||
ss << q;
|
||||
ss >> q;
|
||||
}
|
||||
|
||||
bool is_skipws ( const std::istream *is ) {
|
||||
return ( is->flags() & std::ios_base::skipws ) != 0;
|
||||
}
|
||||
@ -37,6 +27,16 @@ bool is_skipws ( const std::wistream *is ) {
|
||||
return ( is->flags() & std::ios_base::skipws ) != 0;
|
||||
}
|
||||
|
||||
void both_ways ( const char *p ) {
|
||||
std::string str(p);
|
||||
auto q = std::quoted(str);
|
||||
|
||||
std::stringstream ss;
|
||||
bool skippingws = is_skipws ( &ss );
|
||||
ss << q;
|
||||
ss >> q;
|
||||
}
|
||||
|
||||
void round_trip ( const char *p ) {
|
||||
std::stringstream ss;
|
||||
bool skippingws = is_skipws ( &ss );
|
||||
|
Loading…
Reference in New Issue
Block a user