package regex_common /* (c) Copyright 2024 Feoramund . Made available under Odin's license. List of contributors: Feoramund: Initial implementation. */ import "core:io" import "core:strings" write_padded_hex :: proc(w: io.Writer, #any_int n, zeroes: int) { sb := strings.builder_make() defer strings.builder_destroy(&sb) sbw := strings.to_writer(&sb) io.write_int(sbw, n, 0x10) io.write_string(w, "0x") for _ in 0..