docs/Writerside/topics/string.h.md

changeset 1426
3a89b31f0724
parent 1424
563033aa998c
--- a/docs/Writerside/topics/string.h.md	Wed Oct 15 22:45:21 2025 +0200
+++ b/docs/Writerside/topics/string.h.md	Thu Oct 16 19:57:47 2025 +0200
@@ -82,26 +82,28 @@
 ```C
 #include <cx/string.h>
 
-int cx_strcmp(cxstring s1, cxstring s2);
+int cx_strcmp(AnyStr s1, AnyStr s2);
 
 int cx_strcmp_p(const void *s1, const void *s2);
 
-bool cx_strprefix(cxstring string, cxstring prefix);
-
-bool cx_strsuffix(cxstring string, cxstring suffix);
-
-int cx_strcasecmp(cxstring s1, cxstring s2);
-
 int cx_strcasecmp_p(const void *s1, const void *s2);
 
-bool cx_strcaseprefix(cxstring string, cxstring prefix);
+bool cx_strprefix(AnyStr string, AnyStr prefix);
+
+bool cx_strsuffix(AnyStr string, AnyStr suffix);
 
-bool cx_strcasesuffix(cxstring string, cxstring suffix);
+int cx_strcasecmp(AnyStr s1, AnyStr s2);
+
+bool cx_strcaseprefix(AnyStr string, AnyStr prefix);
+
+bool cx_strcasesuffix(AnyStr string, AnyStr suffix);
 ```
 
-The `cx_strcmp()` function compares two UCX strings lexicographically
+The `cx_strcmp()` function compares two strings lexicographically
 and returns an integer greater than, equal to, or less than 0, if `s1` is greater than, equal to, or less than `s2`, respectively.
-The `cx_strcmp_p()` function is equivalent, except that it takes pointers to the UCX strings and the signature is compatible with `cx_compare_func`.
+
+The `cx_strcmp_p()` function takes pointers to UCX strings (i.e., only to `cxstring` and `cxmutstr`) and the signature is compatible with `cx_compare_func`.
+Use this as a compare function for lists or other data structures.
 
 The functions `cx_strprefix()` and `cx_strsuffic()` check if `string` starts with `prefix` or ends with `suffix`, respectively.
 

mercurial