docs/Writerside/topics/string.h.md

changeset 1332
02946dc73e6a
parent 1318
12fa1d37fe48
--- a/docs/Writerside/topics/string.h.md	Tue May 27 22:23:06 2025 +0200
+++ b/docs/Writerside/topics/string.h.md	Tue May 27 22:23:33 2025 +0200
@@ -9,7 +9,7 @@
 
 ## Basics
 
-> To make documentation simpler, we introduce the pseudo-type `AnyStr` with the meaning that
+> To simplify documentation, we introduce the pseudo-type `AnyStr` with the meaning that
 > both `cxstring` and `cxmutstr` are accepted for that argument.
 > The implementation is actually hidden behind a macro which uses `cx_strcast()` to guarantee compatibility.
 {style="note"}
@@ -33,8 +33,6 @@
 
 cxmutstr cx_mutstrn(char *cstring, size_t length);
 
-cxstring cx_strcast(AnyStr str);
-
 cxmutstr cx_strdup(AnyStr string);
 
 cxmutstr cx_strdup_a(const CxAllocator *allocator, AnyStr string);
@@ -51,6 +49,7 @@
 
 #define CX_SFMT(s)   (int) (s).length, (s).ptr
 #define CX_PRIstr    ".*s"
+#define cx_strcast(s)  // converts any string to cxstring
 ```
 
 The functions `cx_str()` and `cx_mutstr()` create a UCX string from a `const char*` or a `char*`

mercurial