Banjo API 1.1.0-alpha
Low-level C99 game development API
Loading...
Searching...
No Matches
text_wrapper.h File Reference
#include <banjo/api.h>
#include <banjo/stream.h>
#include <banjo/string.h>
Include dependency graph for text_wrapper.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef enum bj_text_line_ending bj_text_line_ending

Enumerations

enum  bj_text_line_ending { BJ_TEXT_LINE_ENDING_NATIVE = 0x00 , BJ_TEXT_LINE_ENDING_CR = 0x01 , BJ_TEXT_LINE_ENDING_LF = 0x02 , BJ_TEXT_LINE_ENDING_CRLF = BJ_TEXT_LINE_ENDING_CR | BJ_TEXT_LINE_ENDING_LF }

Functions

struct bj_text_wrapper * bj_create_text_wrapper (struct bj_stream *stream)
void bj_destroy_text_wrapper (struct bj_text_wrapper *wrapper)
bj_bool bj_read_text_wrapper (struct bj_text_wrapper *wrapper, struct bj_str *chunk, size_t max_bytes)
bj_bool bj_read_text_wrapper_line (struct bj_text_wrapper *wrapper, struct bj_str *line, size_t max_bytes)
bj_bool bj_peek_text_wrapper (struct bj_text_wrapper *wrapper, struct bj_str *character)
bj_bool bj_write_text_wrapper (struct bj_text_wrapper *wrapper, struct bj_str text)
bj_bool bj_write_text_wrapper_line (struct bj_text_wrapper *wrapper, struct bj_str text)
bj_bool bj_flush_text_wrapper (struct bj_text_wrapper *wrapper)
enum bj_stream_status bj_text_wrapper_status (const struct bj_text_wrapper *wrapper)
void bj_clear_text_wrapper_status (struct bj_text_wrapper *wrapper)
void bj_set_text_wrapper_line_ending (struct bj_text_wrapper *wrapper, enum bj_text_line_ending ending)
enum bj_text_line_ending bj_text_wrapper_line_ending (const struct bj_text_wrapper *wrapper)

Detailed Description

Header file for struct bj_text_wrapper and related functions.

Definition in file text_wrapper.h.