src/string.c

changeset 1676
f889ffd07c86
parent 1674
8b0f162ac88e
child 1677
1d73c7302fbc
--- 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

mercurial