Skip to content

Releases: mickjc750/str

V3.0.0

23 Aug 09:42
Compare
Choose a tag to compare

V3.0.0

New features:

  • strview_split_all() - split by delimiters into an array of views
  • strview_dequote() - remove quotes from a view
  • strbuf_to_cstr() - removes strbuf metadata to produce a naked heap allocated string
  • strbuf_printf() - now provides format checking

Bug fixes:

  • Fixed issue #6 affecting strbuf_append_printf()
  • Fixed bug in buffer_vcat(), which would only have consequences if exceeding a buffer size of INT_MAX
  • strbuf_read() is supposed to append to a buffer, but wasn't doing that.

Other changes:

  • Removed strbuf_register_default_allocator(), now a default allocator may be provided at link time.
  • Renamed strbuf_read() to strbuf_append_read()
  • Cleaned up & added some examples

Docs and Features

11 Oct 04:36
Compare
Choose a tag to compare
  • Doxygen friendly.
  • Register a default custom allocator.
  • Initialise a strbuf_t on creation from a strview_t.
  • Additional number conversions with more convenient usage.
  • Generic macros for many strbuf.c and strview.c functions which allow using C strings OR strview_t as arguments.
  • Some renaming, as delimeters was spelled wrong.
  • Simplified allocator.

Improved documentation

13 Mar 05:26
Compare
Choose a tag to compare

Created a /docs directory with separate documentation for strbuf.h strview.h strnum.h
Battled with markdown to get the documentation looking respectable.

v1.0.0

12 Mar 06:18
Compare
Choose a tag to compare

Now has enough features, testing, and documentation for a release.
Additional features may be added in future releases, but the API will remain backwards compatible from here on.