llvm-project/libcxx/test/std/strings
Tom Honermann 7e7013c5d4 [libc++][cuchar] Declare std::c8rtomb and std::mbrtoc8 in <cuchar> if available.
This change implements the C library dependent portions of P0482R6
(char8_t: A type for UTF-8 characters and strings (Revision 6)) by
declaring std::c8rtomb() and std::mbrtoc8() in the <cuchar> header
when implementations are provided by the C library as specified by
WG14 N2653 (char8_t: A type for UTF-8 characters and strings
(Revision 1)) as adopted for C23.

A _LIBCPP_HAS_NO_C8RTOMB_MBRTOC8 macro is defined by the libc++ __config
header unless it is known that the C library provides these functions
in the current compilation mode. This macro is used for testing purposes
and may be of use to libc++ users. At present, the only C library known
to implement these functions is GNU libc as of its 2.36 release.

Reviewed By: ldionne

Differential Revision: https://reviews.llvm.org/D130946
2022-09-10 21:10:33 -04:00
..
basic.string [libc++] Granularize the rest of memory 2022-09-05 12:36:41 +02:00
basic.string.hash [libc++] Enable hash only for the correct types 2022-08-26 17:40:23 +02:00
basic.string.literals [libc++] Remove noexcept specifier from operator""s 2022-09-02 21:37:32 +02:00
c.strings [libc++][cuchar] Declare std::c8rtomb and std::mbrtoc8 in <cuchar> if available. 2022-09-10 21:10:33 -04:00
char.traits [NFC][libc++] char_traits code cleanups. 2022-08-31 22:18:10 +02:00
string.classes [libc++][test] Use TEST_HAS_NO_CHAR8_T to simplify #ifdefs. NFCI. 2022-08-25 21:09:10 -06:00
string.conversions Tests ignore the return value of sto{meow}, triggering nodiscard warnings in MS STL 2022-07-16 19:46:34 +02:00
string.view [libc++] Enable hash only for the correct types 2022-08-26 17:40:23 +02:00
strings.erasure [libc++][NFC] Fix minor errors and inconsistencies in the test suite 2021-08-20 12:14:24 -04:00
strings.general [libc++] Remove "// -*- C++ -*-" comments from all .cpp files. NFCI. 2021-10-01 12:06:59 -04:00