mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-03 05:08:14 +00:00
Begin supporting string16 across the core library
This commit is contained in:
+8
-8
@@ -2346,14 +2346,14 @@ fmt_array :: proc(fi: ^Info, data: rawptr, n: int, elem_size: int, elem: ^reflec
|
||||
}
|
||||
|
||||
switch reflect.type_info_base(elem).id {
|
||||
case byte: fmt_string(fi, string(([^]byte)(data)[:n]), verb); return
|
||||
case u16: print_utf16(fi, ([^]u16)(data)[:n]); return
|
||||
case u16le: print_utf16(fi, ([^]u16le)(data)[:n]); return
|
||||
case u16be: print_utf16(fi, ([^]u16be)(data)[:n]); return
|
||||
case u32: print_utf32(fi, ([^]u32)(data)[:n]); return
|
||||
case u32le: print_utf32(fi, ([^]u32le)(data)[:n]); return
|
||||
case u32be: print_utf32(fi, ([^]u32be)(data)[:n]); return
|
||||
case rune: print_utf32(fi, ([^]rune)(data)[:n]); return
|
||||
case byte: fmt_string(fi, string (([^]byte)(data)[:n]), verb); return
|
||||
case u16: fmt_string16(fi, string16(([^]u16) (data)[:n]), verb); return
|
||||
case u16le: print_utf16(fi, ([^]u16le)(data)[:n]); return
|
||||
case u16be: print_utf16(fi, ([^]u16be)(data)[:n]); return
|
||||
case u32: print_utf32(fi, ([^]u32)(data)[:n]); return
|
||||
case u32le: print_utf32(fi, ([^]u32le)(data)[:n]); return
|
||||
case u32be: print_utf32(fi, ([^]u32be)(data)[:n]); return
|
||||
case rune: print_utf32(fi, ([^]rune)(data)[:n]); return
|
||||
}
|
||||
}
|
||||
if verb == 'p' {
|
||||
|
||||
Reference in New Issue
Block a user