Commit f8f68eee authored by jan.koester's avatar jan.koester
Browse files

test

parent 88e0f6bb
Loading
Loading
Loading
Loading
+7 −0
Changes for include/cxx/string: 7 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -611,6 +611,13 @@ template<class C, class T, class A, class = enable_if_t<!is_same<C, char>::value
basic_string<C, T, A> operator+(const basic_string<C, T, A>& a, C b) { basic_string<C, T, A> r(a); r += b; return r; }

typedef basic_string<wchar_t> wstring;
/* the UTF-16/UTF-32 strings use the same generic template (real gap:
 * googletest's gtest-printers.h names std::u16string/u32string) */
typedef basic_string<char16_t> u16string;
typedef basic_string<char32_t> u32string;
#ifdef __cpp_char8_t
typedef basic_string<char8_t> u8string;
#endif

/* std::string IS basic_string<char> -- an explicit specialization of
 * the generic template above, carrying this tree's own concrete,
+5 −0
Changes for include/cxx/string_view: 5 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -112,6 +112,11 @@ private:
};

typedef basic_string_view<wchar_t> wstring_view;
typedef basic_string_view<char16_t> u16string_view;
typedef basic_string_view<char32_t> u32string_view;
#ifdef __cpp_char8_t
typedef basic_string_view<char8_t> u8string_view;
#endif

class string_view {
public: