string_view lite - A C++17-like string_view for C++98, C++11 and later in a single-file header-only library
This release of string_view lite contains the following additions, fixes and changes.
Additions:
nullptr
, p2166 (#47, thanks @mbs-c).nssv_CONFIG_NO_STREAM_INSERTION
to omit streams (#42, thanks @theShmoo).export()
to CMakeLists.txt
, enabling importing targets, nonstd-lite-project issues 50.tc-cl.bat
, nonstd-lite-project issues 54.Fixes:
nullptr
for presence of =delete
, p2166 (#47).char
to CharT
for older compilers (#45, thanks @Elite-stay).string_view
(thanks @striezel, #44).Changes:
find()
constexpr in C++11 (#48, #49, thanks @eyalroz).std::swap()
(#41, thanks @stdbug)._CPPUNWIND
with _HAS_EXCEPTIONS
(thanks @DBJDBJ, nonstd-lite-project issue 49).*_CPP20_OR_GREATER
to 202002L
(nonstd-lite-project issue 60).This release of string_view lite adds configuration via the Tweak header mechanism as proposed by Colby Pike (@vector-of-bool).
Additions:
nonstd/string_view.tweak.hpp
Fixes:
nssv
prefix in configuration in t.bat
, tc.bat
, tg.bat
batch files in test/
Changes:
This release of string_view lite fixes the presence of char type specializations for compare()
and length()
that use builtin functions memcmp
and strlen
in relation to the availability of constexpr
.
Fixes:
Changes:
This release of string_view lite provides constexpr
comparison via compare()
for C++14 (#34, thanks to @mcskatkat).
It contains the following fixes and changes:
Fixes:
detail::length()
for non-optimized compilation (#33, thanks to @augustheart)operator!=(basic_string_view, std::basic_string)
.Changes:
constexpr
comparison via compare()
for C++14 (#34, thanks to @mcskatkat)__builtin_memcmp()
, __builtin_strlen()
, memcmp()
or strlen()
(#34, thanks to @mcskatkat).operator!=()
in operator==()
This release of string_view lite contains the following fixes and changes:
Fixes:
operator==()
on wstring_view and wchar_t raw string (#30, thanks to @gongminmin).Changes:
std::string
and const char *
for older compilers.detail::length()
for compilers with maximum recursion depth in compile-time constexpr
evaluation (#29, thanks @AdmiralCurtiss).#include
in code on godbolt, nonstd-lite-project issue 36.In this release of string_view lite, string_view.hpp
is unchanged (apart from it's version number).
Changes:
[to be expanded]
This release of string_view lite improves support for CMake and Conan and contains numerous other changes and fixes.
See also nonstd lite project Improve coherence between lite projects.
To be written...
string-view lite has been re-licensed under the Boost Software License (BSL) (issue #6).
This is the first non-alpha release of string-view-lite.