String View Lite Versions Save

string_view lite - A C++17-like string_view for C++98, C++11 and later in a single-file header-only library

v1.7.0

1 year ago

This release of string_view lite contains the following additions, fixes and changes.

Additions:

  • Add prevention to construct, convert from nullptr, p2166 (#47, thanks @mbs-c).
  • Add configuration option nssv_CONFIG_NO_STREAM_INSERTION to omit streams (#42, thanks @theShmoo).
  • Add export() to CMakeLists.txt, enabling importing targets, nonstd-lite-project issues 50.
  • Add script tc-cl.bat, nonstd-lite-project issues 54.
  • Add GitHub Actions CI.

Fixes:

  • Fix prevention to construct, convert from nullptr for presence of =delete, p2166 (#47).
  • Fix check for stream to use sentry (#46, thanks mprather).
  • Fix parameter type from char to CharT for older compilers (#45, thanks @Elite-stay).
  • Fix link to LLVM libc++ implementation of string_view (thanks @striezel, #44).
  • Fix typos in string_view.hpp (thanks @striezel, #43).
  • Fix identical mangled names for clang on Windows (#40, thanks @nickhutchinson).

Changes:

v1.6.0

3 years ago

This release of string_view lite adds configuration via the Tweak header mechanism as proposed by Colby Pike (@vector-of-bool).

Additions:

  • Add 'Tweak header' support via nonstd/string_view.tweak.hpp

Fixes:

  • Fix usage of builtin for MSVC 1920/14.2 (VS2019) for pre-C++17
  • Fix to use nssv prefix in configuration in t.bat, tc.bat, tg.bat batch files in test/

Changes:

  • Add Visual Studio 2019 to the Appveyor build matrix (#39)

v1.5.1

3 years ago

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:

  • Fix usage of char type builtins or mem-functions with respect to constexpr-ness (#34, thanks to @mcskatkat) (#38)

Changes:

  • Add tag [.builtins] to inspect relevant macros.

v1.5.0

3 years ago

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:

  • Fix detail::length() for non-optimized compilation (#33, thanks to @augustheart)
  • Fix operator operator!=(basic_string_view, std::basic_string).

Changes:

  • Provide constexpr comparison via compare() for C++14 (#34, thanks to @mcskatkat)
  • For char type, use __builtin_memcmp(), __builtin_strlen(), memcmp() or strlen() (#34, thanks to @mcskatkat).
  • Express operator!=() in operator==()
  • Add IDE folders/files and build folder to .gitignore (.vs, .vscode, CodeBlocks, build)
  • Add .editorconfig file

v1.4.0

4 years ago

This release of string_view lite contains the following fixes and changes:

Fixes:

  • Fix operator==() on wstring_view and wchar_t raw string (#30, thanks to @gongminmin).

Changes:

  • Add option -Wshadow for gcc, clang.
  • Avoid shadowing (#31, thanks @mattyclarkson).
  • Add string_view comparison with std::string and const char * for older compilers.
  • Non-recursive variant of detail::length() for compilers with maximum recursion depth in compile-time constexpr evaluation (#29, thanks @AdmiralCurtiss).
  • Improve MSVC version table, nonstd-lite-project issue 38.
  • Point conan badge to conan-center (thanks @flexferrum).
  • Use #include in code on godbolt, nonstd-lite-project issue 36.

v1.3.0

4 years ago

In this release of string_view lite, string_view.hpp is unchanged (apart from it's version number).

Changes:

  • Change vcpkg install to use CMake
  • Replace underscore with dash in unit name
  • Add settings options to conanfile (thanks to @ngrodzitski)

v1.2.0

5 years ago

[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.

v1.1.0

5 years ago

To be written...

v1.0.0

5 years ago

string-view lite has been re-licensed under the Boost Software License (BSL) (issue #6).

v0.2.0

6 years ago

This is the first non-alpha release of string-view-lite.