mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-31 20:00:09 +00:00
Update strings case convertors to be unicode compliant
This commit is contained in:
@@ -8,10 +8,27 @@ Builder :: struct {
|
||||
buf: [dynamic]byte,
|
||||
}
|
||||
|
||||
make_builder :: proc(allocator := context.allocator) -> Builder {
|
||||
make_builder_none :: proc(allocator := context.allocator) -> Builder {
|
||||
return Builder{make([dynamic]byte, allocator)};
|
||||
}
|
||||
|
||||
make_builder_len :: proc(len: int, allocator := context.allocator) -> Builder {
|
||||
return Builder{make([dynamic]byte, len, allocator)};
|
||||
}
|
||||
|
||||
make_builder_len_cap :: proc(len, cap: int, allocator := context.allocator) -> Builder {
|
||||
return Builder{make([dynamic]byte, len, cap, allocator)};
|
||||
}
|
||||
|
||||
make_builder :: proc{
|
||||
make_builder_none,
|
||||
make_builder_len,
|
||||
make_builder_len_cap,
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
destroy_builder :: proc(b: ^Builder) {
|
||||
delete(b.buf);
|
||||
clear(&b.buf);
|
||||
|
||||
Reference in New Issue
Block a user