--- a/src/string.c Sun Dec 28 17:31:20 2025 +0100 +++ b/src/string.c Sun Dec 28 18:30:25 2025 +0100 @@ -178,7 +178,7 @@ return (cxstring) {string.ptr + start, length}; } -cxstring cx_strchr( +cxstring cx_strchr_( cxstring string, int chr ) { @@ -187,15 +187,7 @@ return (cxstring) {ret, string.length - (ret - string.ptr)}; } -cxmutstr cx_strchr_m( - cxmutstr string, - int chr -) { - cxstring result = cx_strchr(cx_strcast(string), chr); - return (cxmutstr) {(char *) result.ptr, result.length}; -} - -cxstring cx_strrchr( +cxstring cx_strrchr_( cxstring string, int chr ) { @@ -216,14 +208,6 @@ #endif } -cxmutstr cx_strrchr_m( - cxmutstr string, - int chr -) { - cxstring result = cx_strrchr(cx_strcast(string), chr); - return (cxmutstr) {(char *) result.ptr, result.length}; -} - #ifndef CX_STRSTR_SBO_SIZE #define CX_STRSTR_SBO_SIZE 128 #endif