gcc/libstdc++-v3/include
Jonathan Wakely b6584a72ac re PR libstdc++/64797 (22_locale/conversions/string/2.cc FAILs)
PR libstdc++/64797
	* include/bits/locale_conv.h (wstring_convert::_M_conv): Handle
	incomplete multibyte sequences correctly.
	* include/std/codecvt (codecvt_utf8, codecvt_utf16,
	codecvt_utf8_utf16): Limit _Maxcode to maximum Unicode code point.
	* src/c++11/codecvt.cc (invalid_mb_sequence, incomplete_mb_character):
	Define constants.
	(is_high_surrogate, is_low_surrogate, surrogate_pair_to_code_point):
	Define convenience functions.
	(read_utf8_code_point): Return relevant constant to distinguish
	incomplete characters from invalid sequences.
	(read_utf16_code_point): Likewise. Check for invalid sequences.
	(ucs4_in, utf16_in): Use incomplete_mb_character constant.
	(utf16_out): Check for invalid sequences.
	(utf16_span): Fix condition.
	(ucs2_out): Use is_high_surrogate.
	(ucs2_in): Use incomplete_mb_character constant and fix condition.
	* testsuite/22_locale/codecvt/char16_t.cc: Fix whitespace.
	* testsuite/22_locale/conversions/buffer/1.cc: New.
	* testsuite/22_locale/conversions/string/2.cc: Use char16_t and
	char32_t instead of wchar_t.
	* testsuite/22_locale/conversions/string/3.cc: New.

From-SVN: r221189
2015-03-04 17:19:55 +00:00
..
backward
bits re PR libstdc++/64797 (22_locale/conversions/string/2.cc FAILs) 2015-03-04 17:19:55 +00:00
c
c_compatibility
c_global re PR libstdc++/64883 (FAIL: 17_intro/headers/c++*/all_attributes.cc (test for excess errors) on x86_64-apple-darwin10) 2015-02-01 15:11:08 +00:00
c_std re PR libstdc++/64883 (FAIL: 17_intro/headers/c++*/all_attributes.cc (test for excess errors) on x86_64-apple-darwin10) 2015-02-01 15:11:08 +00:00
debug
decimal
experimental re PR libstdc++/64650 (std::experimental::bad_optional_access is not default constructible) 2015-01-20 11:51:03 +00:00
ext atomic_base.h: Use __always_inline__ instead of always_inline. 2015-01-29 12:47:20 +00:00
parallel
precompiled
profile
std re PR libstdc++/64797 (22_locale/conversions/string/2.cc FAILs) 2015-03-04 17:19:55 +00:00
tr1
tr2
Makefile.am locale_conv.h (wstring_convert, [...]): New. 2015-01-16 23:38:48 +00:00
Makefile.in locale_conv.h (wstring_convert, [...]): New. 2015-01-16 23:38:48 +00:00