36 #ifndef UCX_STRING_H |
36 #ifndef UCX_STRING_H |
37 #define UCX_STRING_H |
37 #define UCX_STRING_H |
38 |
38 |
39 #include "common.h" |
39 #include "common.h" |
40 #include "allocator.h" |
40 #include "allocator.h" |
|
41 |
|
42 /** Expands a UCX string as printf arguments. */ |
|
43 #define CX_SFMT(s) (int) (s).length, (s).ptr |
|
44 |
|
45 /** Format specifier for a UCX string */ |
|
46 #define CX_PRIstr ".*s" |
41 |
47 |
42 /** |
48 /** |
43 * The maximum length of the "needle" in cx_strstr() that can use SBO. |
49 * The maximum length of the "needle" in cx_strstr() that can use SBO. |
44 */ |
50 */ |
45 cx_attr_export |
51 cx_attr_export |