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

Go to the source code of this file.

Data Structures

struct  bj_str

Macros

#define BJ_STR(literal)
#define bj_strlen   strlen
#define bj_strcmp   strcmp

Functions

struct bj_str bj_str_from_cstr (const char *c_string)
bj_bool bj_str_eq (struct bj_str left, struct bj_str right)
struct bj_str bj_str_slice (struct bj_str view, size_t from, size_t to)
struct bj_string * bj_create_string (struct bj_str initial)
void bj_destroy_string (struct bj_string *string)
struct bj_str bj_string_view (const struct bj_string *string)
const char * bj_string_cstr (const struct bj_string *string)
void bj_append_string (struct bj_string *string, struct bj_str tail)

Detailed Description

UTF-8 string views and owning strings.

Definition in file string.h.