7 typedef enum format_buffer_mode {
8 FORMAT_BUFFER_READ = 0,
9 FORMAT_BUFFER_WRITE = 1,
17 format_buffer_mode mode;
20 b8 format_buffer_create_static(
format_buffer *buf, format_buffer_mode mode,
char *buffer, usize length);
28 b8 format_buffer_add_char_n(
format_buffer *buf,
char c, usize n);
29 b8 format_buffer_add_chars(
format_buffer *buf,
const char *chars, usize length);
33 b8 format_buffer_peak_char(
const format_buffer *buf,
char *c);
36 b8 format_buffer_match_chars(
format_buffer *buf,
const char *c, usize length);
Central header providing allocator functionality.
Custom library for interactions with strings using string views.
Global typedefs and macros.
Central allocator structure.
Non owning views on actual strings.