1
1
mirror of https://github.com/theoludwig/libcproject.git synced 2024-11-13 23:43:13 +01:00
Commit Graph

18 Commits

Author SHA1 Message Date
e5190818c4
perf: mutate destination string for string_concatenate
BREAKING CHANGE: Function signature changed
2023-08-07 00:42:11 +02:00
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
06b34b115b
feat: support giving a custom character for string_trim, string_trim_start, string_trim_end
BREAKING CHANGE: Functions signatures changed.
If you want to preserve the same behavior, you should pass explictly the space character to trim:
Example: `string_trim(" Hello ")` => `string_trim(" Hello ", ' ')`
2023-08-05 14:19:44 +02:00
d345c90ba3
style: fix linting 2023-08-04 00:02:35 +02:00
209440588d
fix: more memory issues thanks to -fsanitize=address flag
Work In Progress #5
2023-08-03 23:55:14 +02:00
a0a1310f53
feat: add hash_map_free 2023-08-03 23:17:54 +02:00
8b6f06dc6e
feat: add stack_free 2023-08-03 23:01:19 +02:00
1e475a59b1
feat: add queue_free 2023-08-03 22:57:32 +02:00
6a40df3ad1
feat: add linked_list_free 2023-08-03 19:48:02 +02:00
d231a0f055
feat: add array_list_free 2023-08-03 19:42:50 +02:00
2796dec0c7
fix: memory issues thanks to -fsanitize=address flag
Work In Progress #5
2023-08-03 19:35:44 +02:00
baea00fdac
feat!: remove dictionary data structure
Replaced by `hash_map`
2023-06-25 20:09:07 +02:00
4a11a096fa
feat: add hash_map data structure
fixes #3
2023-06-25 20:09:07 +02:00
931a0b69ce
chore: replace missing string_t 2023-06-25 20:09:07 +02:00
Divlo
bd85171e2d
refactor: include only in header files 2023-01-07 19:41:04 +01:00
Divlo
886038a0ac
feat: add array_list data structure
fixes #2
2023-01-07 19:40:16 +01:00
Divlo
cf6b7db16d
feat: first release 2023-01-05 21:13:10 +01:00
Divlo
0fa82c5772
chore: initial commit 2023-01-05 19:28:05 +01:00