1
1
mirror of https://github.com/theoludwig/libcproject.git synced 2024-11-12 15:23:12 +01:00
libcproject/lib
Théo LUDWIG 72645da4b2
perf: mutate strings instead of copy when possible
BREAKING CHANGE: 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 use `string_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`
2023-08-06 23:17:07 +02:00
..
array_list.c feat: add array_list_free 2023-08-03 19:42:50 +02:00
array_list.h chore: update @since version 2023-08-05 15:03:53 +02:00
character.c perf: mutate strings instead of copy when possible 2023-08-06 23:17:07 +02:00
character.h perf: mutate strings instead of copy when possible 2023-08-06 23:17:07 +02:00
convert.c perf: mutate strings instead of copy when possible 2023-08-06 23:17:07 +02:00
convert.h perf: mutate strings instead of copy when possible 2023-08-06 23:17:07 +02:00
filesystem.c feat: improvements to filesystem_get_mimetype 2023-08-06 16:39:33 +02:00
filesystem.h feat: improvements to filesystem_get_mimetype 2023-08-06 16:39:33 +02:00
hash_map.c fix: more memory issues thanks to -fsanitize=address flag 2023-08-04 19:20:00 +02:00
hash_map.h chore: update @since version 2023-08-05 15:03:53 +02:00
linked_list.c fix: more memory issues thanks to -fsanitize=address flag 2023-08-03 23:55:14 +02:00
linked_list.h chore: update @since version 2023-08-05 15:03:53 +02:00
mathematics.c refactor: include only in header files 2023-01-07 19:41:04 +01:00
mathematics.h chore: prefix all #define for includes with LIBCPROJECT 2023-06-25 20:09:07 +02:00
queue.c feat: add queue_free 2023-08-03 22:57:32 +02:00
queue.h chore: update @since version 2023-08-05 15:03:53 +02:00
stack.c feat: add stack_free 2023-08-03 23:01:19 +02:00
stack.h chore: update @since version 2023-08-05 15:03:53 +02:00
string.c perf: mutate strings instead of copy when possible 2023-08-06 23:17:07 +02:00
string.h perf: mutate strings instead of copy when possible 2023-08-06 23:17:07 +02:00
terminal.c perf: mutate strings instead of copy when possible 2023-08-06 23:17:07 +02:00
terminal.h chore: update @since version 2023-08-05 15:03:53 +02:00
types.h chore: prefix all #define for includes with LIBCPROJECT 2023-06-25 20:09:07 +02:00