aboutsummaryrefslogtreecommitdiff
path: root/core/strconv.odin
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-08-03 21:21:56 +0100
committerGinger Bill <bill@gingerbill.org>2017-08-03 21:21:56 +0100
commit49d337c83039715fd3100f6ec8a88dff80c08c4b (patch)
treef129486fb80a44dc106a277a576438d0ce344d8c /core/strconv.odin
parent294092979e89faa67dc77d2261e9ddafc18b0d0d (diff)
v0.6.2; Use Ada_Case for typesv0.6.2
Diffstat (limited to 'core/strconv.odin')
-rw-r--r--core/strconv.odin10
1 files changed, 5 insertions, 5 deletions
diff --git a/core/strconv.odin b/core/strconv.odin
index 4a062b8a2..789379a24 100644
--- a/core/strconv.odin
+++ b/core/strconv.odin
@@ -1,6 +1,6 @@
import . "decimal.odin";
-IntFlag :: enum {
+Int_Flag :: enum {
Prefix = 1<<0,
Plus = 1<<1,
Space = 1<<2,
@@ -445,7 +445,7 @@ is_integer_negative :: proc(u: u128, is_signed: bool, bit_size: int) -> (unsigne
return u, neg;
}
-append_bits :: proc(buf: []u8, u: u128, base: int, is_signed: bool, bit_size: int, digits: string, flags: IntFlag) -> string {
+append_bits :: proc(buf: []u8, u: u128, base: int, is_signed: bool, bit_size: int, digits: string, flags: Int_Flag) -> string {
if base < 2 || base > MAX_BASE {
panic("strconv: illegal base passed to append_bits");
}
@@ -461,7 +461,7 @@ append_bits :: proc(buf: []u8, u: u128, base: int, is_signed: bool, bit_size: in
}
i-=1; a[i] = digits[uint(u % b)];
- if flags&IntFlag.Prefix != 0 {
+ if flags&Int_Flag.Prefix != 0 {
ok := true;
match base {
case 2: i-=1; a[i] = 'b';
@@ -478,9 +478,9 @@ append_bits :: proc(buf: []u8, u: u128, base: int, is_signed: bool, bit_size: in
if neg {
i-=1; a[i] = '-';
- } else if flags&IntFlag.Plus != 0 {
+ } else if flags&Int_Flag.Plus != 0 {
i-=1; a[i] = '+';
- } else if flags&IntFlag.Space != 0 {
+ } else if flags&Int_Flag.Space != 0 {
i-=1; a[i] = ' ';
}