CMAKELISTS: A pullable api now
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user