aboutsummaryrefslogtreecommitdiff
path: root/core/fmt.odin
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2017-12-04 22:01:51 +0000
committergingerBill <bill@gingerbill.org>2017-12-04 22:01:51 +0000
commitf0de99405982e8e2e2a121fccf81e32e4c221e8c (patch)
tree07a78ee9d1e7803772c42bd0a04fa9624152c0e5 /core/fmt.odin
parentebb2a9812ced9c3f53085a57843f42b95086ae87 (diff)
Make core library use procedure groupings rather than normal overloading
Diffstat (limited to 'core/fmt.odin')
-rw-r--r--core/fmt.odin4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/fmt.odin b/core/fmt.odin
index 690365327..c1191f500 100644
--- a/core/fmt.odin
+++ b/core/fmt.odin
@@ -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 == '%' {