Fix for webclient

This commit is contained in:
Goodlyay 2020-12-09 03:44:46 -08:00
parent 37e42233e7
commit ac8ad72e63

View File

@ -113,6 +113,8 @@ CC_API int String_IndexOfAt(const cc_string* str, int offset, char c);
#define String_LastIndexOf(str, c) String_LastIndexOfAt(str, 0, c) #define String_LastIndexOf(str, c) String_LastIndexOfAt(str, 0, c)
/* Returns last index of the given character in the given string, -1 if not found. */ /* Returns last index of the given character in the given string, -1 if not found. */
CC_API int String_LastIndexOfAt(const cc_string* str, int offset, char c); CC_API int String_LastIndexOfAt(const cc_string* str, int offset, char c);
/* Returns nth index of the given character in the given string, starting from the right. -1 if not found. */
CC_API int String_NthIndexOfFromRight(const cc_string* str, char c, int number);
/* Inserts the given character into the given string. Exits process if this fails. */ /* Inserts the given character into the given string. Exits process if this fails. */
/* e.g. inserting 'd' at offset '1' into "abc" produces "adbc" */ /* e.g. inserting 'd' at offset '1' into "abc" produces "adbc" */
CC_API void String_InsertAt(cc_string* str, int offset, char c); CC_API void String_InsertAt(cc_string* str, int offset, char c);