CMAKELISTS: A pullable api now

This commit is contained in:
2026-10-14 10:31:31 -04:00
parent 4ea742946a
commit f3e416fa68
5 changed files with 140 additions and 8 deletions
+60
View File
@@ -0,0 +1,60 @@
#ifndef STRING_H
#define STRING_H
#include <stddef.h>
#include <string.h>
/* Functions to implement:
charAt
substring / slice
concat
equals / compareTo
find / indexOf
contains / includes
isEmpty / isBlank
replace
split
trim
toLower / toLowerCase
toUpper / toUpperCase
startsWith
endsWith
replaceAll
join
*/
typedef struct
{
char* data;
size_t len;
} String;
String
strvmk(char* s);
size_t
strvlen(String s);
char*
strvget(String s);
String
strvreverse(String s);
void
strvfree(String s);
#endif