1030:06091e067bee | 1031:8a90552bba29 |
---|---|
37 #define UCX_PROPERTIES | 37 #define UCX_PROPERTIES |
38 | 38 |
39 #include "common.h" | 39 #include "common.h" |
40 #include "string.h" | 40 #include "string.h" |
41 #include "map.h" | 41 #include "map.h" |
42 #include "array_list.h" | 42 #include "buffer.h" |
43 | 43 |
44 #include <stdio.h> | 44 #include <stdio.h> |
45 #include <string.h> | 45 #include <string.h> |
46 | 46 |
47 #ifdef __cplusplus | 47 #ifdef __cplusplus |
167 * The configuration. | 167 * The configuration. |
168 */ | 168 */ |
169 CxPropertiesConfig config; | 169 CxPropertiesConfig config; |
170 | 170 |
171 /** | 171 /** |
172 * The text buffer. | 172 * The text input buffer. |
173 */ | 173 */ |
174 const char *text; | 174 CxBuffer input; |
175 | 175 |
176 /** | 176 /** |
177 * Size of the text buffer. | 177 * Internal buffer. |
178 */ | 178 */ |
179 size_t text_size; | 179 CxBuffer buffer; |
180 | |
181 /** | |
182 * Position in the text buffer. | |
183 */ | |
184 size_t text_pos; | |
185 | |
186 /** | |
187 * Temporary internal buffer. | |
188 */ | |
189 char *buf; | |
190 | |
191 /** | |
192 * Size of the internal buffer. | |
193 */ | |
194 size_t buf_size; | |
195 | |
196 /** | |
197 * Capacity of the internal buffer. | |
198 */ | |
199 size_t buf_capacity; | |
200 | |
201 /** | |
202 * Internal flags. | |
203 */ | |
204 int flags; | |
205 }; | 180 }; |
206 | 181 |
207 /** | 182 /** |
208 * Typedef for the properties interface. | 183 * Typedef for the properties interface. |
209 */ | 184 */ |
545 return cxPropertiesFilln(prop, str, strlen(str)); | 520 return cxPropertiesFilln(prop, str, strlen(str)); |
546 } | 521 } |
547 #endif | 522 #endif |
548 | 523 |
549 /** | 524 /** |
550 * Specifies stack memory that shall be used by #cxPropertiesFill(). | 525 * Specifies stack memory that shall be used as internal buffer. |
551 * | 526 * |
552 * @param prop the properties interface | 527 * @param prop the properties interface |
553 * @param buf a pointer to stack memory | 528 * @param buf a pointer to stack memory |
554 * @param capacity the capacity of the stack memory | 529 * @param capacity the capacity of the stack memory |
555 */ | 530 */ |