Releases: theoludwig/libcproject
Releases · theoludwig/libcproject
v4.2.1
v4.2.0
v4.1.1
v4.1.0
v4.0.0
4.0.0 (2023-08-08)
⚠ BREAKING CHANGES
- Most of string functions mutates the string instead of copying now.
This allows better performance when copy is not needed.
It also allows more granual control.
If copy is wanted, simply usestring_copy
before calling the function.
Impacted functions are:
string_to_uppercase
,string_to_lowercase
,string_replace
,
string_trim_start
,string_trim_end
,string_trim
,
string_capitalize
,string_reverse
,string_concatenate
Bug Fixes
- handle EXIT_FAILURE by printing error message with perror (b922fd9)
Performance Improvements
v3.1.0
v3.0.0
3.0.0 (2023-08-05)
⚠ BREAKING CHANGES
- Functions signatures changed for
string_trim
,string_trim_start
,string_trim_end
.
If you want to preserve the same behavior, you should pass explictly the space character to trim:
Example:string_trim(" Hello ")
=>string_trim(" Hello ", ' ')
Features
- add array_list_free (d231a0f)
- add hash_map_free (a0a1310)
- add linked_list_free (6a40df3)
- add queue_free (1e475a5)
- add stack_free (8b6f06d)
- add terminal_print_array_list (9717cff)
- support giving a custom character for string_trim, string_trim_start, string_trim_end (06b34b1)
Bug Fixes
v2.0.0
2.0.0 (2023-06-25)
⚠ BREAKING CHANGES
- remove
dictionary
data structure (replaced byhash_map
) - take a
uint8_t
for file_content instead ofchar
(it makes more sense to treat files as array of "bytes", not only characters/text files.)
Features
- add
byte_t
typedef (ce088f8) - add
hash_map
data structure (4a11a09), closes #3 - add
string_t
typedef (8f3ee19) - add types.h (a0140a6)
- remove
dictionary
data structure (baea00f) - support more mimetypes for
filesystem_get_mimetype
(b9f573b)
Bug Fixes
- handle filesystem read and write errors (b665e36)
- update
filesystem_read
andfilesystem_write
signatures (eb798a6) - update author - Théo LUDWIG (20d31ba)
Performance Improvements
- compile with -O3 gcc flag (d850f04)