jun
614a9716cc
Fix failed assertion in guf_str_copy
...
An assertion GUF_ASSERT(str_is_valid(dst)) failed in guf_str_copy when it called guf_str_cstr(dst)
since guf_str_cstr assumes an already valid string, which was not the case when src was a short string.
Therefore, we get the dst's c_str now without calling guf_str_cstr(dst)
(Found by writing DbufStrTest.)
2025-05-15 20:53:50 +02:00
jun
6091eac820
Add guf_math_ckdint IMPL_STATIC etc.
2025-05-13 14:56:21 +02:00
jun
9c417d2aa1
Add checked arithmetic
2025-05-11 08:55:03 +02:00
jun
1013616b2d
Re-implement guf_str tokeniser
2025-05-02 21:54:39 +02:00
jun
c6b0aa8d89
Add guf_str hash functions
2025-04-24 02:55:39 +02:00
jun
e98dc3b91e
Fix guf_str bugs and add tests
2025-04-24 01:43:24 +02:00
jun
461006746e
Add guf_str_substr
2025-03-28 20:26:43 +01:00
jun
3ff4cd7572
Add more dict functions
2025-03-21 18:57:22 +01:00
jun
3ee07078f0
Add comments
2025-03-21 00:51:29 +01:00
jun
7630ecfdcf
Change directory structure
2025-03-21 00:22:34 +01:00
jun
275f46226d
Add more guf_str functions
2025-03-20 23:30:45 +01:00
jun
21d1b04e6b
Add changeable load factor
2025-03-20 20:29:21 +01:00
jun
534ff261ca
Add move- and copy ctors to dict and guf_str
2025-03-20 15:29:18 +01:00
jun
c039e24996
Use SIZE_MAX instead of SIZE_T_MAX
2025-03-19 23:03:10 +01:00
jun
48b366d8e9
Fix warnings in release
2025-03-19 18:29:52 +01:00
jun
ad884ee1e9
Implement guf_str
2025-03-17 21:17:07 +01:00
jun
9ddea4bb07
Change short-string approach to use 32 instead of 40 bytes
2025-03-11 12:24:44 +01:00
jun
e489dd694b
Add quaternion operations
2025-03-06 11:52:24 +01:00
jun
24bc8d5a15
Add guf_str_view functions
2025-03-04 08:18:35 +01:00
jun
301477f5c6
Add GUF_CSTR_TO_VIEW_CPP
2025-03-04 08:01:41 +01:00
jun
4d97725bba
Fix guf_dict growth bug
2025-03-02 21:41:30 +01:00
jun
cd1c1cd5db
Refactor
2025-03-02 18:25:54 +01:00
jun
217622d816
Add tokeniser
2025-02-27 10:21:21 +01:00
jun
d450cd8a45
Add utf-8 handling
2025-02-27 07:12:43 +01:00
jun
8c324c00f7
Major refactor
2025-01-30 13:29:14 +01:00
jun
c9b18a220e
Rewrite dbuf
2025-01-27 10:06:54 +01:00
jun
9e0da64cb4
Use macro templates instead of void pointers
2025-01-04 19:47:15 +01:00
jun
0751726fc5
Initial commit
2025-01-03 10:38:57 +01:00