Files
libstr/include/string/string.h
T

61 lines
520 B
C

#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