| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
package stdlib |
| 7 |
|
| 8 |
import ( |
| 9 |
"go/constant" |
| 10 |
"go/token" |
| 11 |
"reflect" |
| 12 |
"strconv" |
| 13 |
) |
| 14 |
|
| 15 |
func init() { |
| 16 |
Symbols["strconv/strconv"] = map[string]reflect.Value{ |
| 17 |
|
| 18 |
"AppendBool": reflect.ValueOf(strconv.AppendBool), |
| 19 |
"AppendFloat": reflect.ValueOf(strconv.AppendFloat), |
| 20 |
"AppendInt": reflect.ValueOf(strconv.AppendInt), |
| 21 |
"AppendQuote": reflect.ValueOf(strconv.AppendQuote), |
| 22 |
"AppendQuoteRune": reflect.ValueOf(strconv.AppendQuoteRune), |
| 23 |
"AppendQuoteRuneToASCII": reflect.ValueOf(strconv.AppendQuoteRuneToASCII), |
| 24 |
"AppendQuoteRuneToGraphic": reflect.ValueOf(strconv.AppendQuoteRuneToGraphic), |
| 25 |
"AppendQuoteToASCII": reflect.ValueOf(strconv.AppendQuoteToASCII), |
| 26 |
"AppendQuoteToGraphic": reflect.ValueOf(strconv.AppendQuoteToGraphic), |
| 27 |
"AppendUint": reflect.ValueOf(strconv.AppendUint), |
| 28 |
"Atoi": reflect.ValueOf(strconv.Atoi), |
| 29 |
"CanBackquote": reflect.ValueOf(strconv.CanBackquote), |
| 30 |
"ErrRange": reflect.ValueOf(&strconv.ErrRange).Elem(), |
| 31 |
"ErrSyntax": reflect.ValueOf(&strconv.ErrSyntax).Elem(), |
| 32 |
"FormatBool": reflect.ValueOf(strconv.FormatBool), |
| 33 |
"FormatComplex": reflect.ValueOf(strconv.FormatComplex), |
| 34 |
"FormatFloat": reflect.ValueOf(strconv.FormatFloat), |
| 35 |
"FormatInt": reflect.ValueOf(strconv.FormatInt), |
| 36 |
"FormatUint": reflect.ValueOf(strconv.FormatUint), |
| 37 |
"IntSize": reflect.ValueOf(constant.MakeFromLiteral("64", token.INT, 0)), |
| 38 |
"IsGraphic": reflect.ValueOf(strconv.IsGraphic), |
| 39 |
"IsPrint": reflect.ValueOf(strconv.IsPrint), |
| 40 |
"Itoa": reflect.ValueOf(strconv.Itoa), |
| 41 |
"ParseBool": reflect.ValueOf(strconv.ParseBool), |
| 42 |
"ParseComplex": reflect.ValueOf(strconv.ParseComplex), |
| 43 |
"ParseFloat": reflect.ValueOf(strconv.ParseFloat), |
| 44 |
"ParseInt": reflect.ValueOf(strconv.ParseInt), |
| 45 |
"ParseUint": reflect.ValueOf(strconv.ParseUint), |
| 46 |
"Quote": reflect.ValueOf(strconv.Quote), |
| 47 |
"QuoteRune": reflect.ValueOf(strconv.QuoteRune), |
| 48 |
"QuoteRuneToASCII": reflect.ValueOf(strconv.QuoteRuneToASCII), |
| 49 |
"QuoteRuneToGraphic": reflect.ValueOf(strconv.QuoteRuneToGraphic), |
| 50 |
"QuoteToASCII": reflect.ValueOf(strconv.QuoteToASCII), |
| 51 |
"QuoteToGraphic": reflect.ValueOf(strconv.QuoteToGraphic), |
| 52 |
"QuotedPrefix": reflect.ValueOf(strconv.QuotedPrefix), |
| 53 |
"Unquote": reflect.ValueOf(strconv.Unquote), |
| 54 |
"UnquoteChar": reflect.ValueOf(strconv.UnquoteChar), |
| 55 |
|
| 56 |
|
| 57 |
"NumError": reflect.ValueOf((*strconv.NumError)(nil)), |
| 58 |
} |
| 59 |
} |