github.com/goplus/igop@v0.25.0/pkg/unicode/utf8/go117_export.go (about) 1 // export by github.com/goplus/igop/cmd/qexp 2 3 //go:build go1.17 && !go1.18 4 // +build go1.17,!go1.18 5 6 package utf8 7 8 import ( 9 q "unicode/utf8" 10 11 "go/constant" 12 "reflect" 13 14 "github.com/goplus/igop" 15 ) 16 17 func init() { 18 igop.RegisterPackage(&igop.Package{ 19 Name: "utf8", 20 Path: "unicode/utf8", 21 Deps: map[string]string{}, 22 Interfaces: map[string]reflect.Type{}, 23 NamedTypes: map[string]reflect.Type{}, 24 AliasTypes: map[string]reflect.Type{}, 25 Vars: map[string]reflect.Value{}, 26 Funcs: map[string]reflect.Value{ 27 "DecodeLastRune": reflect.ValueOf(q.DecodeLastRune), 28 "DecodeLastRuneInString": reflect.ValueOf(q.DecodeLastRuneInString), 29 "DecodeRune": reflect.ValueOf(q.DecodeRune), 30 "DecodeRuneInString": reflect.ValueOf(q.DecodeRuneInString), 31 "EncodeRune": reflect.ValueOf(q.EncodeRune), 32 "FullRune": reflect.ValueOf(q.FullRune), 33 "FullRuneInString": reflect.ValueOf(q.FullRuneInString), 34 "RuneCount": reflect.ValueOf(q.RuneCount), 35 "RuneCountInString": reflect.ValueOf(q.RuneCountInString), 36 "RuneLen": reflect.ValueOf(q.RuneLen), 37 "RuneStart": reflect.ValueOf(q.RuneStart), 38 "Valid": reflect.ValueOf(q.Valid), 39 "ValidRune": reflect.ValueOf(q.ValidRune), 40 "ValidString": reflect.ValueOf(q.ValidString), 41 }, 42 TypedConsts: map[string]igop.TypedConst{}, 43 UntypedConsts: map[string]igop.UntypedConst{ 44 "MaxRune": {"untyped rune", constant.MakeInt64(int64(q.MaxRune))}, 45 "RuneError": {"untyped rune", constant.MakeInt64(int64(q.RuneError))}, 46 "RuneSelf": {"untyped int", constant.MakeInt64(int64(q.RuneSelf))}, 47 "UTFMax": {"untyped int", constant.MakeInt64(int64(q.UTFMax))}, 48 }, 49 }) 50 }