Commit Graph

187 Commits

Author SHA1 Message Date
62dcfdaa93 Use Str8 instead of const char * in tester functions 2025-02-16 16:32:29 +00:00
19134d0e15 Address Windows Spectre mitigation warnings 2025-02-16 14:55:17 +00:00
ca2b1cbf23 Reformat 2025-02-16 14:53:29 +00:00
f60442bfcf Fix bug with arena allocation on Windows 2025-02-16 14:52:31 +00:00
a4a1e82c40 Add tests for str8 splitting, joining and concatenation 2025-02-15 23:45:37 +00:00
d50b41acac Add str8 split, rsplit, join, concat and concat_capped functions 2025-02-15 23:45:07 +00:00
71b6242f16 Update allocator free to take object size 2025-02-15 23:44:23 +00:00
241edfc7e4 Change Str8Node to use Str8 instead of Str8RO 2025-02-15 20:36:31 +00:00
d635e03cd8 Add tests for Str8List utilities 2025-02-15 20:29:50 +00:00
68fe421ab0 Add Str8List and str8 equality function 2025-02-15 20:29:15 +00:00
622a4391a0 Update compile script 2025-02-15 10:49:23 +00:00
ff4d3c9e99 Add tests for string allocation functions 2025-02-09 18:47:10 +00:00
023c74d8d9 Add functions to dynamically allocate strings 2025-02-09 18:46:32 +00:00
86fe867011 Reformat 2025-02-09 18:21:36 +00:00
98829b8400 Reformat 2025-02-09 18:19:27 +00:00
a7e98211f9 Update find and rfind tests 2025-02-09 16:41:29 +00:00
4642361969 Add tests for find and rfind 2025-02-09 16:35:42 +00:00
093d0daf6f Add find and rfine functions 2025-02-09 16:35:28 +00:00
f8e0804dd2 Fix unused variable error 2025-02-09 16:34:36 +00:00
fdb0650634 Add -Wextra flag for compilation 2025-02-09 16:34:12 +00:00
d1d6a8e64b Add utils for str8 printing 2025-02-09 15:13:50 +00:00
bbf38499ca Implement read-only string literals 2025-02-09 14:29:54 +00:00
7657ad1b58 Remove libc allocator 2025-02-01 21:39:27 +00:00
70399cb797 Change c16 and c32 defintions 2025-02-01 20:21:45 +00:00
76c3b02e45 Change char type to c8 in Str8 functions 2024-10-17 00:13:35 +01:00
abf9b09495 Implement test for wapp_str8_set 2024-10-17 00:08:08 +01:00
6d09059911 Change wapp_str8_lit implementation to support mutable string literals 2024-10-17 00:07:30 +01:00
894ae028b7 Add aliases for character data types 2024-10-17 00:06:56 +01:00
84a4ec223c Commit the Str8 tests 2024-10-08 23:58:24 +01:00
8f10ac2916 Add string buffer macro and tests for Str8 2024-10-08 23:57:55 +01:00
bfb4e87a1e Remove extra spaces in aliases.h 2024-10-08 22:45:48 +01:00
685682e1c8 revamp-strings (#1)
Co-authored-by: Abdelrahman Said <said.abdelrahman@flawlessai.com>
Reviewed-on: #1
Co-authored-by: Abdelrahman <said.abdelrahman89@gmail.com>
Co-committed-by: Abdelrahman <said.abdelrahman89@gmail.com>
2024-10-07 22:35:56 +00:00
40d301fd95 Reformat 2024-10-06 21:31:04 +01:00
7d8df816a5 Move cpath to os 2024-10-06 20:04:38 +01:00
17f0f0eaf3 Fix cpath tests on Windows 2024-10-06 19:54:34 +01:00
ce656a6275 Fix Spectre warnings for MSVC 2024-10-06 19:54:13 +01:00
8d8fcf9dc5 Improve early exit code in test_cpath 2024-10-06 19:33:13 +01:00
77e634ec2d Fix comment 2024-10-06 19:30:19 +01:00
22ece7215a Move path utils to os, fix bugs with it and write tests 2024-10-06 19:28:34 +01:00
4af4b39d6f Remove unnecessary clang-format comments 2024-10-06 12:59:21 +01:00
a48002996e Reorganise src directory 2024-10-06 12:54:04 +01:00
e9451f10f8 Reformat and increase minimum arena capacity to 4 pages 2024-10-06 12:42:12 +01:00
1de3608b1f Pass MemInitType to platform functions 2024-10-05 22:30:11 +01:00
3a25571105 Reformat 2024-10-05 23:18:23 +01:00
139b4ca589 Restore missing mem_utils code 2024-10-05 23:17:23 +01:00
e431cf729e Reformat 2024-10-05 23:15:03 +01:00
1d1c3ca928 Split the platform specific mem_utils implementations 2024-10-05 23:05:32 +01:00
f2f155744a Declare external functions for termcolour and commander in the headers 2024-10-05 23:04:35 +01:00
d3a86ec6cb Add extern alias 2024-10-05 23:03:19 +01:00
e053aa44ab Remove unnecessary termcolour header files 2024-10-05 22:28:24 +01:00