~sircmpwn/hare

ref: c66099085ccde84906ac368ee82214a7422bfd42 hare/strconv/types.ha -rw-r--r-- 524 bytes
c6609908Eyal Sawady README.md: fix typo 1 year, 3 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Indicates that the input string is not an integer
export type invalid = void!;

// Indicates that the input number is too large to be represented by the
// requested data type
export type overflow = void!;

// The valid numeric bases for numeric conversions.
export type base = enum uint {
	// Base 2, binary
	BIN = 2,
	// Base 8, octal
	OCT = 8,
	// Base 10, decimal
	DEC = 10,
	// Base 16, UPPERCASE hexadecimal
	HEX_UPPER = 16,
	// Alias for HEX_UPPER
	HEX = 16,
	// Base 16, lowercase hexadecimal
	HEX_LOWER = 17,
};