Removed remaining std::u8string_view functions

This commit is contained in:
John Wellbelove 2024-11-24 08:55:22 +00:00
parent 75f7292447
commit 89123357a6

View File

@ -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<value_type*>(&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.
//*************************************************************************