From 89123357a60a1d8a986679073e93e559d27266ad Mon Sep 17 00:00:00 2001 From: John Wellbelove Date: Sun, 24 Nov 2024 08:55:22 +0000 Subject: [PATCH] Removed remaining std::u8string_view functions --- include/etl/u8string.h | 36 ------------------------------------ 1 file changed, 36 deletions(-) diff --git a/include/etl/u8string.h b/include/etl/u8string.h index 009f541e..7510c4f6 100644 --- a/include/etl/u8string.h +++ b/include/etl/u8string.h @@ -186,18 +186,6 @@ namespace etl this->assign(view.begin(), view.end()); } -#if ETL_USING_STL && ETL_USING_CPP20 - //************************************************************************* - /// From string_view. - ///\param view The string_view. - //************************************************************************* - explicit u8string(const std::u8string_view& view) - : iu8string(reinterpret_cast(&buffer), MAX_SIZE) - { - this->assign(view.begin(), view.end()); - } -#endif - //************************************************************************* /// Returns a sub-u8string. ///\param position The position of the first character. Default = 0. @@ -266,18 +254,6 @@ namespace etl return *this; } -#if ETL_USING_STL && ETL_USING_CPP20 - //************************************************************************* - /// Assignment operator. - //************************************************************************* - u8string& operator = (const std::u8string_view& view) - { - this->assign(view); - - return *this; - } -#endif - //************************************************************************* /// Fix the internal pointers after a low level memory copy. //************************************************************************* @@ -430,18 +406,6 @@ namespace etl this->assign(view.begin(), view.end()); } -#if ETL_USING_STL && ETL_USING_CPP20 - //************************************************************************* - /// From string_view. - ///\param view The string_view. - //************************************************************************* - explicit u8string_ext(const std::u8string_view& view, value_type* buffer, size_type buffer_size) - : iu8string(buffer, buffer_size - 1U) - { - this->assign(view.begin(), view.end()); - } -#endif - //************************************************************************* /// Assignment operator. //*************************************************************************