cppx-core
Symbol_strings.hpp
Go to the documentation of this file.
1 #pragma once // Source encoding: UTF-8 with BOM (π is a lowercase Greek "pi").
2 
3 #include <cppx-core/config.hpp> // cppx::use_ascii_substitutes
4 #include <cppx-core/language/types/type-makers.hpp> // cppx::Type_choice_
5 
6 namespace cppx
7 {
8  namespace utf8
9  {
11  {
12  static constexpr auto& left_quote_str = "“";
13  static constexpr auto& right_quote_str = "”";
14  static constexpr auto& bullet_str = "•";
15  static constexpr auto& left_arrow_str = "←";
16  static constexpr auto& right_arrow_str = "→";
17  };
18  }
19 
20  namespace ascii
21  {
23  {
24  static constexpr auto& left_quote_str = "\"";
25  static constexpr auto& right_quote_str = "\"";
26  static constexpr auto& bullet_str = "*";
27  static constexpr auto& left_arrow_str = "<-";
28  static constexpr auto& right_arrow_str = "->";
29  };
30  }
31 
32  namespace best_effort
33  {
36  >;
37 
40  inline constexpr auto& bullet_str = Symbol_strings::bullet_str;
43  } // namespace best_effort
44 
45 } // namespace cppx
static constexpr auto & right_arrow_str
constexpr auto & right_arrow_str
static constexpr auto & bullet_str
std::conditional_t< condition, A, B > Type_choice_
Reduces to type A if the condition holds, otherwise type B.
Definition: type-makers.hpp:33
static constexpr auto & right_quote_str
Type_choice_, Unptr_, Unref_, Signed_, Unsigned_, Const_, Unconst_ and Array_of_.
static constexpr auto & left_quote_str
static constexpr auto & bullet_str
constexpr Truth use_ascii_substitutes
Definition: config.hpp:19
static constexpr auto & right_arrow_str
constexpr auto & left_quote_str
Type_choice_< !!use_ascii_substitutes, ascii::Symbol_strings, utf8::Symbol_strings > Symbol_strings
constexpr auto & left_arrow_str
static constexpr auto & left_arrow_str
static constexpr auto & left_arrow_str
constexpr auto & bullet_str
constexpr auto & right_quote_str
static constexpr auto & right_quote_str
static constexpr auto & left_quote_str