--- a/docs/Writerside/topics/string.h.md Sat Oct 11 15:42:48 2025 +0200 +++ b/docs/Writerside/topics/string.h.md Sun Oct 12 20:21:56 2025 +0200 @@ -141,7 +141,7 @@ The function `cx_strlen()` sums the length of the specified strings. > There is no reason to use `cx_strlen()` for a single UCX string. -> Just access the `length` field of the structure directly. +> You can access the `length` field of the structure directly. > You can mix `cxstring` and `cxmutstr` in the variadic arguments without the need of `cx_strcast()`. @@ -181,7 +181,7 @@ and `cx_strsubsl()` returns a substring with at most `length` bytes. The function `cx_strtrim()` returns the substring that results when removing all leading and trailing -whitespace characters (a space character is one of the following string: `" \t\r\n\v\f"`). +whitespace characters. All functions with the `_m` suffix behave exactly the same as their counterparts without `_m` suffix, except that they operate on a `cxmustr`. @@ -306,9 +306,9 @@ ## Conversion to Numbers -For each integer type, as well as `float` and `double`, there are functions to convert a UCX string to a number of that type. +For each integer type, as well as `float` and `double`, there are functions to convert a UCX string to a value of those types. -Integer conversion comes in two flavours: +Integer conversion comes in two flavors: ```C int cx_strtoi(AnyStr str, int *output, int base); @@ -324,7 +324,7 @@ array of group separator chars, each of which is simply ignored during conversion. The default group separator for the basic version is a comma `,`. -The signature for the floating point conversions is quite similar: +The signature for the floating-point conversions is quite similar: ```C int cx_strtof(AnyStr str, float *output); @@ -332,13 +332,13 @@ char decsep, const char *groupsep); ``` -The two differences are that the floating point versions do not support different bases, +The two differences are that the floating-point versions do not support different bases, and the `_lc` variant allows specifying not only an array of group separators, but also the character used for the decimal separator. In the basic variant, the group separator is again a comma `,`, and the decimal separator is a dot `.`. -> The floating point conversions of UCX 3.1 do not achieve the same precision as standard library implementations +> The floating-point conversions of UCX 3.1 do not achieve the same precision as standard library implementations > which usually use more sophisticated algorithms. > The precision might increase in future UCX releases, > but until then be aware of slight inaccuracies, in particular when working with `double`.