1 # String |
1 # String |
2 |
2 |
3 <warning> |
3 <warning> |
4 Outdated - Rewrite! |
4 Outdated Section - will be updated soon! |
5 </warning> |
5 </warning> |
6 |
6 |
7 UCX strings come in two variants: immutable (`cxstring`) and mutable (`cxmutstr`). |
7 UCX strings come in two variants: immutable (`cxstring`) and mutable (`cxmutstr`). |
8 The functions of UCX are designed to work with immutable strings by default but in situations where it is necessary, |
8 The functions of UCX are designed to work with immutable strings by default but in situations where it is necessary, |
9 the API also provides alternative functions that work directly with mutable strings. |
9 the API also provides alternative functions that work directly with mutable strings. |
17 In general, UCX strings are **not** necessarily zero-terminated. If a function guarantees to return zero-terminated |
17 In general, UCX strings are **not** necessarily zero-terminated. If a function guarantees to return zero-terminated |
18 string, it is explicitly mentioned in the documentation of the respective function. |
18 string, it is explicitly mentioned in the documentation of the respective function. |
19 As a rule of thumb, you _should not_ pass the strings of a UCX string structure to another API without explicitly |
19 As a rule of thumb, you _should not_ pass the strings of a UCX string structure to another API without explicitly |
20 ensuring that the string is zero-terminated. |
20 ensuring that the string is zero-terminated. |
21 |
21 |
|
22 <!-- |
22 ## Basics |
23 ## Basics |
23 |
24 |
24 ### cx_mutstr |
25 ### cx_mutstr |
25 ### cx_mutstrn |
26 ### cx_mutstrn |
26 ### cx_str |
27 ### cx_str |