|
32 | 32 | #include<ranges> |
33 | 33 | #include<span> |
34 | 34 | #include<stdexcept> |
35 | | -#include<string_view> |
| 35 | +//#include <string_view> |
36 | 36 | #include<type_traits> |
37 | 37 | #include<vector> |
38 | 38 |
|
@@ -85,11 +85,11 @@ namespace pcs // i.e. "pythonic c++ strings" |
85 | 85 |
|
86 | 86 |
|
87 | 87 | // litteral operators |
| 88 | +#pragma warning(push) |
88 | 89 | #pragma warning(disable: 4455) |
89 | 90 | inline CppStringoperator""cs(constchar* str, std::size_t len);//!< Forms a CppString literal. |
90 | | -inline CppStringoperator""csv(constchar* str, std::size_t len);//!< Forms a CppString view literal. |
91 | 91 | inline CppWStringoperator""cs(constwchar_t* str, std::size_t len);//!< Forms a CppWString literal. |
92 | | -inline CppWStringoperator""csv(constwchar_t* str, std::size_t len);//!< Forms a CppWString view literal. |
| 92 | +#pragma warning(pop) |
93 | 93 |
|
94 | 94 | // chars classifications -- not to be directly called, see respective specializations at the very end of this module. |
95 | 95 | template<classCharT> |
@@ -163,7 +163,6 @@ namespace pcs // i.e. "pythonic c++ strings" |
163 | 163 | public: |
164 | 164 | //=== Wrappers ======================================== |
165 | 165 | using MyBaseClass = std::basic_string<CharT, TraitsT, AllocatorT>; |
166 | | -using MyStringView = std::basic_string_view<CharT, TraitsT>; |
167 | 166 |
|
168 | 167 | using traits_type = MyBaseClass::traits_type; |
169 | 168 | using value_type = MyBaseClass::value_type; |
@@ -330,7 +329,7 @@ namespace pcs // i.e. "pythonic c++ strings" |
330 | 329 | * character in key is associated in the translation table with |
331 | 330 | * the i-th character in values. |
332 | 331 | */ |
333 | | -/**/ |
| 332 | +/**/ |
334 | 333 | template<classStringViewLike> |
335 | 334 | explicitTransTable(const StringViewLike& keys,const StringViewLike& values) |
336 | 335 | { |
@@ -2032,31 +2031,20 @@ namespace pcs // i.e. "pythonic c++ strings" |
2032 | 2031 |
|
2033 | 2032 |
|
2034 | 2033 | //===== litteral operators ============================ |
| 2034 | +#pragma warning(push) |
| 2035 | +#pragma warning(disable: 4455) |
2035 | 2036 | /** \brief Forms a CppString literal.*/ |
2036 | 2037 | inline CppStringoperator""cs(constchar* str, std::size_t len) |
2037 | 2038 | { |
2038 | 2039 | returnCppString(CppString::MyBaseClass(str, len)); |
2039 | 2040 | } |
2040 | 2041 |
|
2041 | | -/** \brief Forms a CppString view literal.*/ |
2042 | | -inline CppStringoperator""csv(constchar* str, std::size_t len) |
2043 | | - { |
2044 | | -//return CppString(CppString::MyStringView(str, len)); |
2045 | | -returnCppString(str, len); |
2046 | | - } |
2047 | | - |
2048 | 2042 | /** \brief Forms a CppWString literal.*/ |
2049 | 2043 | inline CppWStringoperator""cs(constwchar_t* str, std::size_t len) |
2050 | 2044 | { |
2051 | 2045 | returnCppWString(CppWString::MyBaseClass(str, len)); |
2052 | 2046 | } |
2053 | | - |
2054 | | -/** \brief Forms a CppWString view literal.*/ |
2055 | | -inline CppWStringoperator""csv(constwchar_t* str, std::size_t len) |
2056 | | - { |
2057 | | -//return CppWString(CppWString::MyStringView(str, len)); |
2058 | | -returnCppWString(str, len); |
2059 | | - } |
| 2047 | +#pragma warning(pop) |
2060 | 2048 |
|
2061 | 2049 |
|
2062 | 2050 | //===== templated chars classes =========================== |
|