mirror of
https://github.com/ETLCPP/etl.git
synced 2026-10-28 18:07:10 +08:00
string streams
This commit is contained in:
parent
2f1343ec0e
commit
3e2352770b
@ -43,6 +43,7 @@ namespace etl
|
||||
{
|
||||
//***************************************************************************
|
||||
/// Default format spec.
|
||||
/// !etl::istring && !etl::string_view
|
||||
//***************************************************************************
|
||||
template <typename T>
|
||||
typename etl::enable_if<!etl::is_same<T, etl::istring>::value && !etl::is_same<T, etl::string_view>::value, const etl::istring&>::type
|
||||
@ -54,7 +55,8 @@ namespace etl
|
||||
}
|
||||
|
||||
//***************************************************************************
|
||||
/// Supplied format spec..
|
||||
/// Supplied format spec.
|
||||
/// !etl::istring && !etl::string_view
|
||||
//***************************************************************************
|
||||
template <typename T>
|
||||
typename etl::enable_if<!etl::is_same<T, etl::istring>::value && !etl::is_same<T, etl::string_view>::value, const etl::istring&>::type
|
||||
@ -65,6 +67,7 @@ namespace etl
|
||||
|
||||
//***************************************************************************
|
||||
/// Default format spec.
|
||||
/// etl::istring
|
||||
//***************************************************************************
|
||||
template <typename T>
|
||||
typename etl::enable_if<etl::is_same<T, etl::istring>::value, const etl::istring&>::type
|
||||
@ -78,7 +81,8 @@ namespace etl
|
||||
}
|
||||
|
||||
//***************************************************************************
|
||||
/// Supplied format spec..
|
||||
/// Supplied format spec.
|
||||
/// etl::istring
|
||||
//***************************************************************************
|
||||
template <typename T>
|
||||
typename etl::enable_if<etl::is_same<T, etl::istring>::value, const etl::istring&>::type
|
||||
@ -91,6 +95,7 @@ namespace etl
|
||||
|
||||
//***************************************************************************
|
||||
/// Default format spec.
|
||||
/// etl::string_view
|
||||
//***************************************************************************
|
||||
template <typename T>
|
||||
typename etl::enable_if<etl::is_same<T, etl::string_view>::value, const etl::istring&>::type
|
||||
@ -104,7 +109,8 @@ namespace etl
|
||||
}
|
||||
|
||||
//***************************************************************************
|
||||
/// Supplied format spec..
|
||||
/// Supplied format spec.
|
||||
/// etl::string_view
|
||||
//***************************************************************************
|
||||
template <typename T>
|
||||
typename etl::enable_if<etl::is_same<T, etl::string_view>::value, const etl::istring&>::type
|
||||
|
||||
@ -43,6 +43,7 @@ namespace etl
|
||||
{
|
||||
//***************************************************************************
|
||||
/// Default format spec.
|
||||
/// !etl::iu16string && !etl::u16string_view
|
||||
//***************************************************************************
|
||||
template <typename T>
|
||||
typename etl::enable_if<!etl::is_same<T, etl::iu16string>::value && !etl::is_same<T, etl::u16string_view>::value, const etl::iu16string&>::type
|
||||
@ -54,7 +55,8 @@ namespace etl
|
||||
}
|
||||
|
||||
//***************************************************************************
|
||||
/// Supplied format spec..
|
||||
/// Supplied format spec.
|
||||
/// !etl::iu16string && !etl::u16string_view
|
||||
//***************************************************************************
|
||||
template <typename T>
|
||||
typename etl::enable_if<!etl::is_same<T, etl::iu16string>::value && !etl::is_same<T, etl::u16string_view>::value, const etl::iu16string&>::type
|
||||
@ -65,6 +67,7 @@ namespace etl
|
||||
|
||||
//***************************************************************************
|
||||
/// Default format spec.
|
||||
/// etl::iu16string
|
||||
//***************************************************************************
|
||||
template <typename T>
|
||||
typename etl::enable_if<etl::is_same<T, etl::iu16string>::value, const etl::iu16string&>::type
|
||||
@ -78,7 +81,8 @@ namespace etl
|
||||
}
|
||||
|
||||
//***************************************************************************
|
||||
/// Supplied format spec..
|
||||
/// Supplied format spec.
|
||||
/// etl::iu16string
|
||||
//***************************************************************************
|
||||
template <typename T>
|
||||
typename etl::enable_if<etl::is_same<T, etl::iu16string>::value, const etl::iu16string&>::type
|
||||
@ -91,6 +95,7 @@ namespace etl
|
||||
|
||||
//***************************************************************************
|
||||
/// Default format spec.
|
||||
/// etl::u16string_view
|
||||
//***************************************************************************
|
||||
template <typename T>
|
||||
typename etl::enable_if<etl::is_same<T, etl::u16string_view>::value, const etl::iu16string&>::type
|
||||
@ -104,7 +109,8 @@ namespace etl
|
||||
}
|
||||
|
||||
//***************************************************************************
|
||||
/// Supplied format spec..
|
||||
/// Supplied format spec.
|
||||
/// etl::u16string_view
|
||||
//***************************************************************************
|
||||
template <typename T>
|
||||
typename etl::enable_if<etl::is_same<T, etl::u16string_view>::value, const etl::iu16string&>::type
|
||||
|
||||
@ -43,6 +43,7 @@ namespace etl
|
||||
{
|
||||
//***************************************************************************
|
||||
/// Default format spec.
|
||||
/// !etl::iu32string && !etl::u32string_view
|
||||
//***************************************************************************
|
||||
template <typename T>
|
||||
typename etl::enable_if<!etl::is_same<T, etl::iu32string>::value && !etl::is_same<T, etl::u32string_view>::value, const etl::iu32string&>::type
|
||||
@ -54,7 +55,8 @@ namespace etl
|
||||
}
|
||||
|
||||
//***************************************************************************
|
||||
/// Supplied format spec..
|
||||
/// Supplied format spec.
|
||||
/// !etl::iu32string && !etl::u32string_view
|
||||
//***************************************************************************
|
||||
template <typename T>
|
||||
typename etl::enable_if<!etl::is_same<T, etl::iu32string>::value && !etl::is_same<T, etl::u32string_view>::value, const etl::iu32string&>::type
|
||||
@ -65,6 +67,7 @@ namespace etl
|
||||
|
||||
//***************************************************************************
|
||||
/// Default format spec.
|
||||
/// etl::iu32string
|
||||
//***************************************************************************
|
||||
template <typename T>
|
||||
typename etl::enable_if<etl::is_same<T, etl::iu32string>::value, const etl::iu32string&>::type
|
||||
@ -78,7 +81,8 @@ namespace etl
|
||||
}
|
||||
|
||||
//***************************************************************************
|
||||
/// Supplied format spec..
|
||||
/// Supplied format spec.
|
||||
/// etl::iu32string
|
||||
//***************************************************************************
|
||||
template <typename T>
|
||||
typename etl::enable_if<etl::is_same<T, etl::iu32string>::value, const etl::iu32string&>::type
|
||||
@ -91,6 +95,7 @@ namespace etl
|
||||
|
||||
//***************************************************************************
|
||||
/// Default format spec.
|
||||
/// etl::u32string_view
|
||||
//***************************************************************************
|
||||
template <typename T>
|
||||
typename etl::enable_if<etl::is_same<T, etl::u32string_view>::value, const etl::iu32string&>::type
|
||||
@ -104,7 +109,8 @@ namespace etl
|
||||
}
|
||||
|
||||
//***************************************************************************
|
||||
/// Supplied format spec..
|
||||
/// Supplied format spec.
|
||||
/// etl::u32string_view
|
||||
//***************************************************************************
|
||||
template <typename T>
|
||||
typename etl::enable_if<etl::is_same<T, etl::u32string_view>::value, const etl::iu32string&>::type
|
||||
|
||||
@ -43,6 +43,7 @@ namespace etl
|
||||
{
|
||||
//***************************************************************************
|
||||
/// Default format spec.
|
||||
/// !etl::iwstring && !etl::wstring_view
|
||||
//***************************************************************************
|
||||
template <typename T>
|
||||
typename etl::enable_if<!etl::is_same<T, etl::iwstring>::value && !etl::is_same<T, etl::wstring_view>::value, const etl::iwstring&>::type
|
||||
@ -54,7 +55,8 @@ namespace etl
|
||||
}
|
||||
|
||||
//***************************************************************************
|
||||
/// Supplied format spec..
|
||||
/// Supplied format spec.
|
||||
/// !etl::iwstring && !etl::wstring_view
|
||||
//***************************************************************************
|
||||
template <typename T>
|
||||
typename etl::enable_if<!etl::is_same<T, etl::iwstring>::value && !etl::is_same<T, etl::wstring_view>::value, const etl::iwstring&>::type
|
||||
@ -65,6 +67,7 @@ namespace etl
|
||||
|
||||
//***************************************************************************
|
||||
/// Default format spec.
|
||||
/// etl::iwstring
|
||||
//***************************************************************************
|
||||
template <typename T>
|
||||
typename etl::enable_if<etl::is_same<T, etl::iwstring>::value, const etl::iwstring&>::type
|
||||
@ -78,7 +81,8 @@ namespace etl
|
||||
}
|
||||
|
||||
//***************************************************************************
|
||||
/// Supplied format spec..
|
||||
/// Supplied format spec.
|
||||
/// etl::iwstring
|
||||
//***************************************************************************
|
||||
template <typename T>
|
||||
typename etl::enable_if<etl::is_same<T, etl::iwstring>::value, const etl::iwstring&>::type
|
||||
@ -91,6 +95,7 @@ namespace etl
|
||||
|
||||
//***************************************************************************
|
||||
/// Default format spec.
|
||||
/// etl::wstring_view
|
||||
//***************************************************************************
|
||||
template <typename T>
|
||||
typename etl::enable_if<etl::is_same<T, etl::wstring_view>::value, const etl::iwstring&>::type
|
||||
@ -104,7 +109,8 @@ namespace etl
|
||||
}
|
||||
|
||||
//***************************************************************************
|
||||
/// Supplied format spec..
|
||||
/// Supplied format spec.
|
||||
/// etl::wstring_view
|
||||
//***************************************************************************
|
||||
template <typename T>
|
||||
typename etl::enable_if<etl::is_same<T, etl::wstring_view>::value, const etl::iwstring&>::type
|
||||
|
||||
@ -38,8 +38,8 @@ SOFTWARE.
|
||||
///\ingroup utilities
|
||||
|
||||
#define ETL_VERSION_MAJOR 18
|
||||
#define ETL_VERSION_MINOR 3
|
||||
#define ETL_VERSION_PATCH 4
|
||||
#define ETL_VERSION_MINOR 5
|
||||
#define ETL_VERSION_PATCH 0
|
||||
#define ETL_VERSION ETL_STRINGIFY(ETL_VERSION_MAJOR) "." ETL_STRINGIFY(ETL_VERSION_MINOR) "." ETL_STRINGIFY(ETL_VERSION_PATCH)
|
||||
#define ETL_VERSION_W ETL_STRINGIFY(ETL_VERSION_MAJOR) L"." ETL_STRINGIFY(ETL_VERSION_MINOR) L"." ETL_STRINGIFY(ETL_VERSION_PATCH)
|
||||
#define ETL_VERSION_U16 ETL_STRINGIFY(ETL_VERSION_MAJOR) u"." ETL_STRINGIFY(ETL_VERSION_MINOR) u"." ETL_STRINGIFY(ETL_VERSION_PATCH)
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "Embedded Template Library",
|
||||
"version": "18.4.0",
|
||||
"version": "18.5.0",
|
||||
"authors": {
|
||||
"name": "John Wellbelove",
|
||||
"email": "john.wellbelove@etlcpp.com"
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
name=Embedded Template Library
|
||||
version=18.4.0
|
||||
version=18.5.0
|
||||
author= John Wellbelove <john.wellbelove@etlcpp.com>
|
||||
maintainer=John Wellbelove <john.wellbelove@etlcpp.com>
|
||||
license=MIT
|
||||
|
||||
@ -1,3 +1,17 @@
|
||||
===============================================================================
|
||||
18.5.0
|
||||
Added string streams
|
||||
etl::string_stream
|
||||
etl::wstring_stream
|
||||
etl::u16string_stream
|
||||
etl::u32string_stream
|
||||
|
||||
Added string formatting to etl::to_string from
|
||||
etl::string etl::string_view
|
||||
etl::wstring etl::wstring_view
|
||||
etl::u16string etl::u16string_view
|
||||
etl::u32string etl::u32string_view
|
||||
|
||||
===============================================================================
|
||||
18.4.0
|
||||
Refactored etl::error_handler to use etl::delegate style implementation.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user