github.com/goplus/igop@v0.25.0/pkg/unicode/utf8/go121_export.go (about) 1 // export by github.com/goplus/igop/cmd/qexp 2 3 //go:build go1.21 4 // +build go1.21 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 "AppendRune": reflect.ValueOf(q.AppendRune), 28 "DecodeLastRune": reflect.ValueOf(q.DecodeLastRune), 29 "DecodeLastRuneInString": reflect.ValueOf(q.DecodeLastRuneInString), 30 "DecodeRune": reflect.ValueOf(q.DecodeRune), 31 "DecodeRuneInString": reflect.ValueOf(q.DecodeRuneInString), 32 "EncodeRune": reflect.ValueOf(q.EncodeRune), 33 "FullRune": reflect.ValueOf(q.FullRune), 34 "FullRuneInString": reflect.ValueOf(q.FullRuneInString), 35 "RuneCount": reflect.ValueOf(q.RuneCount), 36 "RuneCountInString": reflect.ValueOf(q.RuneCountInString), 37 "RuneLen": reflect.ValueOf(q.RuneLen), 38 "RuneStart": reflect.ValueOf(q.RuneStart), 39 "Valid": reflect.ValueOf(q.Valid), 40 "ValidRune": reflect.ValueOf(q.ValidRune), 41 "ValidString": reflect.ValueOf(q.ValidString), 42 }, 43 TypedConsts: map[string]igop.TypedConst{}, 44 UntypedConsts: map[string]igop.UntypedConst{ 45 "MaxRune": {"untyped rune", constant.MakeInt64(int64(q.MaxRune))}, 46 "RuneError": {"untyped rune", constant.MakeInt64(int64(q.RuneError))}, 47 "RuneSelf": {"untyped int", constant.MakeInt64(int64(q.RuneSelf))}, 48 "UTFMax": {"untyped int", constant.MakeInt64(int64(q.UTFMax))}, 49 }, 50 }) 51 }