Make core library use procedure groupings rather than normal overloading

This commit is contained in:
gingerBill
2017-12-04 22:01:51 +00:00
parent ebb2a9812c
commit f0de994059
16 changed files with 423 additions and 375 deletions
+2 -2
View File
@@ -534,7 +534,7 @@ _pad :: proc(fi: ^Fmt_Info, s: string) {
}
width := fi.width - utf8.rune_count(s);
width := fi.width - utf8.rune_count_from_string(s);
if fi.minus { // right pad
write_string(fi.buf, s);
fmt_write_padding(fi, width);
@@ -1126,7 +1126,7 @@ sbprintf :: proc(b: ^String_Buffer, fmt: string, args: ...any) -> string {
break;
}
verb, w := utf8.decode_rune(fmt[i..]);
verb, w := utf8.decode_rune_from_string(fmt[i..]);
i += w;
if verb == '%' {