github.com/goplus/igop@v0.25.0/pkg/unicode/utf8/go114_export.go (about)

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