mirror of
https://github.com/ETLCPP/etl.git
synced 2026-04-30 19:09:10 +08:00
Changed char* parameters to value_type* parameters
This commit is contained in:
parent
3837e36d71
commit
d92eb4d3ff
@ -367,8 +367,9 @@ namespace etl
|
||||
/// Constructor, from null terminated text.
|
||||
///\param text The initial text of the string_ext.
|
||||
//*************************************************************************
|
||||
template <typename TPointer, typename = typename etl::enable_if<etl::is_same<const value_type*, TPointer>::value, int>::type>
|
||||
string_ext(TPointer text, value_type* buffer, size_type buffer_size)
|
||||
template <typename TPointer>
|
||||
string_ext(TPointer text, value_type* buffer, size_type buffer_size,
|
||||
typename etl::enable_if<etl::is_same<const value_type*, TPointer>::value, int>::type* = ETL_NULLPTR)
|
||||
: istring(buffer, buffer_size - 1U)
|
||||
{
|
||||
if (this->is_within_buffer(text))
|
||||
|
||||
@ -347,8 +347,9 @@ namespace etl
|
||||
/// Constructor, from null terminated text.
|
||||
///\param text The initial text of the u16string_ext.
|
||||
//*************************************************************************
|
||||
template <typename TPointer, typename = typename etl::enable_if<etl::is_same<const value_type*, TPointer>::value, int>::type>
|
||||
u16string_ext(TPointer text, char* buffer, size_type buffer_size)
|
||||
template <typename TPointer>
|
||||
u16string_ext(TPointer text, value_type* buffer, size_type buffer_size,
|
||||
typename etl::enable_if<etl::is_same<const value_type*, TPointer>::value, int>::type* = ETL_NULLPTR)
|
||||
: iu16string(buffer, buffer_size - 1U)
|
||||
{
|
||||
if (this->is_within_buffer(text))
|
||||
|
||||
@ -347,8 +347,9 @@ namespace etl
|
||||
/// Constructor, from null terminated text.
|
||||
///\param text The initial text of the u32string_ext.
|
||||
//*************************************************************************
|
||||
template <typename TPointer, typename = typename etl::enable_if<etl::is_same<const value_type*, TPointer>::value, int>::type>
|
||||
u32string_ext(TPointer text, char* buffer, size_type buffer_size)
|
||||
template <typename TPointer>
|
||||
u32string_ext(TPointer text, value_type* buffer, size_type buffer_size,
|
||||
typename etl::enable_if<etl::is_same<const value_type*, TPointer>::value, int>::type* = ETL_NULLPTR)
|
||||
: iu32string(buffer, buffer_size - 1U)
|
||||
{
|
||||
if (this->is_within_buffer(text))
|
||||
|
||||
@ -367,8 +367,9 @@ namespace etl
|
||||
/// Constructor, from null terminated text.
|
||||
///\param text The initial text of the u8string_ext.
|
||||
//*************************************************************************
|
||||
template <typename TPointer, typename = typename etl::enable_if<etl::is_same<const value_type*, TPointer>::value, int>::type>
|
||||
u8string_ext(TPointer text, char* buffer, size_type buffer_size)
|
||||
template <typename TPointer>
|
||||
u8string_ext(TPointer text, value_type* buffer, size_type buffer_size,
|
||||
typename etl::enable_if<etl::is_same<const value_type*, TPointer>::value, int>::type* = ETL_NULLPTR)
|
||||
: iu8string(buffer, buffer_size - 1U)
|
||||
{
|
||||
if (this->is_within_buffer(text))
|
||||
|
||||
@ -347,8 +347,9 @@ namespace etl
|
||||
/// Constructor, from null terminated text.
|
||||
///\param text The initial text of the wstring_ext.
|
||||
//*************************************************************************
|
||||
template <typename TPointer, typename = typename etl::enable_if<etl::is_same<const value_type*, TPointer>::value, int>::type>
|
||||
wstring_ext(TPointer text, char* buffer, size_type buffer_size)
|
||||
template <typename TPointer>
|
||||
wstring_ext(TPointer text, value_type* buffer, size_type buffer_size,
|
||||
typename etl::enable_if<etl::is_same<const value_type*, TPointer>::value, int>::type* = ETL_NULLPTR)
|
||||
: iwstring(buffer, buffer_size - 1U)
|
||||
{
|
||||
if (this->is_within_buffer(text))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user