Files
SectrPrototype/code/grime/strings.odin
Ed_ 73bfdb63ea misc changes
mostly added kt1l from watl exercise
2025-08-07 10:53:35 -04:00

11 lines
428 B
Odin

package grime
Raw_String :: struct {
data: [^]byte,
len: int,
}
string_cursor :: proc(s: string) -> [^]u8 { return slice_cursor(transmute([]byte) s) }
string_copy :: proc(dst, src: string) { slice_copy (transmute([]byte) dst, transmute([]byte) src) }
string_end :: proc(s: string) -> ^u8 { return slice_end (transmute([]byte) s) }
string_assert :: proc(s: string) { slice_assert(transmute([]byte) s) }