forked from borgo-lang/borgo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
strconv.brg
81 lines (43 loc) · 2.15 KB
/
strconv.brg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
fn AppendBool (dst: [byte], b: bool) -> [byte] { EXT }
fn AppendFloat (dst: [byte], f: float64, fmt: byte, prec: int, bitSize: int) -> [byte] { EXT }
fn AppendInt (dst: [byte], i: int64, base: int) -> [byte] { EXT }
fn AppendQuote (dst: [byte], s: string) -> [byte] { EXT }
fn AppendQuoteRune (dst: [byte], r: rune) -> [byte] { EXT }
fn AppendQuoteRuneToASCII (dst: [byte], r: rune) -> [byte] { EXT }
fn AppendQuoteRuneToGraphic (dst: [byte], r: rune) -> [byte] { EXT }
fn AppendQuoteToASCII (dst: [byte], s: string) -> [byte] { EXT }
fn AppendQuoteToGraphic (dst: [byte], s: string) -> [byte] { EXT }
fn AppendUint (dst: [byte], i: uint64, base: int) -> [byte] { EXT }
fn Atoi (s: string) -> Result<int> { EXT }
fn CanBackquote (s: string) -> bool { EXT }
fn FormatBool (b: bool) -> string { EXT }
fn FormatComplex (c: complex128, fmt: byte, prec: int, bitSize: int) -> string { EXT }
fn FormatFloat (f: float64, fmt: byte, prec: int, bitSize: int) -> string { EXT }
fn FormatInt (i: int64, base: int) -> string { EXT }
fn FormatUint (i: uint64, base: int) -> string { EXT }
fn IsGraphic (r: rune) -> bool { EXT }
fn IsPrint (r: rune) -> bool { EXT }
fn Itoa (i: int) -> string { EXT }
fn ParseBool (str: string) -> Result<bool> { EXT }
fn ParseComplex (s: string, bitSize: int) -> Result<complex128> { EXT }
fn ParseFloat (s: string, bitSize: int) -> Result<float64> { EXT }
fn ParseInt (s: string, base: int, bitSize: int) -> Result<int64> { EXT }
fn ParseUint (s: string, base: int, bitSize: int) -> Result<uint64> { EXT }
fn Quote (s: string) -> string { EXT }
fn QuoteRune (r: rune) -> string { EXT }
fn QuoteRuneToASCII (r: rune) -> string { EXT }
fn QuoteRuneToGraphic (r: rune) -> string { EXT }
fn QuoteToASCII (s: string) -> string { EXT }
fn QuoteToGraphic (s: string) -> string { EXT }
fn QuotedPrefix (s: string) -> Result<string> { EXT }
fn Unquote (s: string) -> Result<string> { EXT }
fn UnquoteChar (s: string, quote: byte) -> (rune, bool, string, error) { EXT }
impl (self: NumError) {
fn Error () -> string { EXT }
fn Unwrap () -> error { EXT }
}
struct NumError{
Func: string,
Num: string,
Err: error
}