|
cbase 1.46.11
C/C++ Static Template
|
Functions | |
| static String8 | str8 (u8 *str, usize size) |
| Creates a String8 from a raw pointer and size. | |
| static String8 | str8_range (u8 *first, u8 *one_past_last) |
| Creates a String8 spanning from the first pointer to the one_past_last pointer. | |
| static String8 | str8_cstr (const char *cstr) |
| Converts a standard null-terminated C string into a String8. | |
| static String8 | str8_prefix (String8 str, usize size) |
| Returns a substring containing the first size bytes of the input string. | |
| static String8 | str8_skip (String8 str, usize amt) |
| Returns a substring by skipping the first amt bytes of the input string. | |
| static String8 | str8_substr (String8 str, usize first, usize one_past_last) |
| Returns a substring spanning from first to one_past_last indices. | |
| static b32 | str8_match (String8 a, String8 b) |
| Checks if two String8s are exactly equal (case-sensitive). | |
Creates a String8 from a raw pointer and size.
Definition at line 82 of file base_strings.h.

|
inlinestatic |
Converts a standard null-terminated C string into a String8.
Definition at line 103 of file base_strings.h.
Checks if two String8s are exactly equal (case-sensitive).
Definition at line 151 of file base_strings.h.
Returns a substring containing the first size bytes of the input string.
Definition at line 119 of file base_strings.h.

Creates a String8 spanning from the first pointer to the one_past_last pointer.
Definition at line 92 of file base_strings.h.
Returns a substring by skipping the first amt bytes of the input string.
Definition at line 129 of file base_strings.h.
