xtd 1.0.0
Loading...
Searching...
No Matches
textual.hpp
Go to the documentation of this file.
1
4#pragma once
5#define __XTD_CORE_INTERNAL__
7#undef __XTD_CORE_INTERNAL__
8#include "raw_type.hpp"
9#include "textual_literal.hpp"
10#include <concepts>
11
13namespace xtd {
14 // Since Doxygen does not work properly with the C++ concept, the documentation for this concept is declared in xtd/textual_.hpp
15 template<typename type_t>
16 concept textual =
17 std::same_as<xtd::raw_type<type_t>, std::string> ||
18 std::same_as<xtd::raw_type<type_t>, std::u16string> ||
19 std::same_as<xtd::raw_type<type_t>, std::u32string> ||
20 std::same_as<xtd::raw_type<type_t>, std::u8string> ||
21 std::same_as<xtd::raw_type<type_t>, std::wstring> ||
22 std::same_as<xtd::raw_type<type_t>, xtd::string> ||
23 std::same_as<xtd::raw_type<type_t>, xtd::u16string> ||
24 std::same_as<xtd::raw_type<type_t>, xtd::u32string> ||
25 std::same_as<xtd::raw_type<type_t>, xtd::u8string> ||
26 std::same_as<xtd::raw_type<type_t>, xtd::wstring> ||
28}
Definition textual_literal.hpp:17
Definition textual.hpp:16
xtd::basic_string< xtd::char8 > u8string
Represents text as a sequence of UTF-8 code units.
Definition __string_definitions.hpp:76
xtd::basic_string< xtd::char32 > u32string
Represents text as a sequence of UTF-32 code units.
Definition __string_definitions.hpp:65
xtd::basic_string< char > string
Represents text as a sequence of UTF-8 code units.
Definition __string_definitions.hpp:43
xtd::basic_string< xtd::char16 > u16string
Represents text as a sequence of UTF-16 code units.
Definition __string_definitions.hpp:54
xtd::basic_string< xtd::wchar > wstring
Represents text as a sequence of UTF-16 code unit on Windows or UTF-32 code unit on non-Windows syste...
Definition __string_definitions.hpp:87
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
Contains xtd::raw_type alias.
Contains xtd::textual_literal concept.