Releases: mickjc750/str
Releases · mickjc750/str
V3.0.0
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
- 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
Created a /docs directory with separate documentation for strbuf.h strview.h strnum.h
Battled with markdown to get the documentation looking respectable.