28 /** |
28 /** |
29 * \file string.h |
29 * \file string.h |
30 * \brief Strings that know their length. |
30 * \brief Strings that know their length. |
31 * \author Mike Becker |
31 * \author Mike Becker |
32 * \author Olaf Wintermann |
32 * \author Olaf Wintermann |
33 * \version 3.0 |
|
34 * \copyright 2-Clause BSD License |
33 * \copyright 2-Clause BSD License |
35 */ |
34 */ |
36 |
35 |
37 #ifndef UCX_STRING_H |
36 #ifndef UCX_STRING_H |
38 #define UCX_STRING_H |
37 #define UCX_STRING_H |
39 |
38 |
40 #include "common.h" |
39 #include "common.h" |
41 #include "allocator.h" |
40 #include "allocator.h" |
|
41 |
|
42 /** |
|
43 * The maximum length of the "needle" in cx_strstr() that can use SBO. |
|
44 */ |
|
45 extern unsigned const cx_strstr_sbo_size; |
42 |
46 |
43 /** |
47 /** |
44 * The UCX string structure. |
48 * The UCX string structure. |
45 */ |
49 */ |
46 struct cx_mutstr_s { |
50 struct cx_mutstr_s { |