github.com/goplus/igop@v0.25.0/pkg/strings/go120_export.go (about)

     1  // export by github.com/goplus/igop/cmd/qexp
     2  
     3  //go:build go1.20 && !go1.21
     4  // +build go1.20,!go1.21
     5  
     6  package strings
     7  
     8  import (
     9  	q "strings"
    10  
    11  	"reflect"
    12  
    13  	"github.com/goplus/igop"
    14  )
    15  
    16  func init() {
    17  	igop.RegisterPackage(&igop.Package{
    18  		Name: "strings",
    19  		Path: "strings",
    20  		Deps: map[string]string{
    21  			"errors":           "errors",
    22  			"internal/bytealg": "bytealg",
    23  			"io":               "io",
    24  			"sync":             "sync",
    25  			"unicode":          "unicode",
    26  			"unicode/utf8":     "utf8",
    27  			"unsafe":           "unsafe",
    28  		},
    29  		Interfaces: map[string]reflect.Type{},
    30  		NamedTypes: map[string]reflect.Type{
    31  			"Builder":  reflect.TypeOf((*q.Builder)(nil)).Elem(),
    32  			"Reader":   reflect.TypeOf((*q.Reader)(nil)).Elem(),
    33  			"Replacer": reflect.TypeOf((*q.Replacer)(nil)).Elem(),
    34  		},
    35  		AliasTypes: map[string]reflect.Type{},
    36  		Vars:       map[string]reflect.Value{},
    37  		Funcs: map[string]reflect.Value{
    38  			"Clone":          reflect.ValueOf(q.Clone),
    39  			"Compare":        reflect.ValueOf(q.Compare),
    40  			"Contains":       reflect.ValueOf(q.Contains),
    41  			"ContainsAny":    reflect.ValueOf(q.ContainsAny),
    42  			"ContainsRune":   reflect.ValueOf(q.ContainsRune),
    43  			"Count":          reflect.ValueOf(q.Count),
    44  			"Cut":            reflect.ValueOf(q.Cut),
    45  			"CutPrefix":      reflect.ValueOf(q.CutPrefix),
    46  			"CutSuffix":      reflect.ValueOf(q.CutSuffix),
    47  			"EqualFold":      reflect.ValueOf(q.EqualFold),
    48  			"Fields":         reflect.ValueOf(q.Fields),
    49  			"FieldsFunc":     reflect.ValueOf(q.FieldsFunc),
    50  			"HasPrefix":      reflect.ValueOf(q.HasPrefix),
    51  			"HasSuffix":      reflect.ValueOf(q.HasSuffix),
    52  			"Index":          reflect.ValueOf(q.Index),
    53  			"IndexAny":       reflect.ValueOf(q.IndexAny),
    54  			"IndexByte":      reflect.ValueOf(q.IndexByte),
    55  			"IndexFunc":      reflect.ValueOf(q.IndexFunc),
    56  			"IndexRune":      reflect.ValueOf(q.IndexRune),
    57  			"Join":           reflect.ValueOf(q.Join),
    58  			"LastIndex":      reflect.ValueOf(q.LastIndex),
    59  			"LastIndexAny":   reflect.ValueOf(q.LastIndexAny),
    60  			"LastIndexByte":  reflect.ValueOf(q.LastIndexByte),
    61  			"LastIndexFunc":  reflect.ValueOf(q.LastIndexFunc),
    62  			"Map":            reflect.ValueOf(q.Map),
    63  			"NewReader":      reflect.ValueOf(q.NewReader),
    64  			"NewReplacer":    reflect.ValueOf(q.NewReplacer),
    65  			"Repeat":         reflect.ValueOf(q.Repeat),
    66  			"Replace":        reflect.ValueOf(q.Replace),
    67  			"ReplaceAll":     reflect.ValueOf(q.ReplaceAll),
    68  			"Split":          reflect.ValueOf(q.Split),
    69  			"SplitAfter":     reflect.ValueOf(q.SplitAfter),
    70  			"SplitAfterN":    reflect.ValueOf(q.SplitAfterN),
    71  			"SplitN":         reflect.ValueOf(q.SplitN),
    72  			"Title":          reflect.ValueOf(q.Title),
    73  			"ToLower":        reflect.ValueOf(q.ToLower),
    74  			"ToLowerSpecial": reflect.ValueOf(q.ToLowerSpecial),
    75  			"ToTitle":        reflect.ValueOf(q.ToTitle),
    76  			"ToTitleSpecial": reflect.ValueOf(q.ToTitleSpecial),
    77  			"ToUpper":        reflect.ValueOf(q.ToUpper),
    78  			"ToUpperSpecial": reflect.ValueOf(q.ToUpperSpecial),
    79  			"ToValidUTF8":    reflect.ValueOf(q.ToValidUTF8),
    80  			"Trim":           reflect.ValueOf(q.Trim),
    81  			"TrimFunc":       reflect.ValueOf(q.TrimFunc),
    82  			"TrimLeft":       reflect.ValueOf(q.TrimLeft),
    83  			"TrimLeftFunc":   reflect.ValueOf(q.TrimLeftFunc),
    84  			"TrimPrefix":     reflect.ValueOf(q.TrimPrefix),
    85  			"TrimRight":      reflect.ValueOf(q.TrimRight),
    86  			"TrimRightFunc":  reflect.ValueOf(q.TrimRightFunc),
    87  			"TrimSpace":      reflect.ValueOf(q.TrimSpace),
    88  			"TrimSuffix":     reflect.ValueOf(q.TrimSuffix),
    89  		},
    90  		TypedConsts:   map[string]igop.TypedConst{},
    91  		UntypedConsts: map[string]igop.UntypedConst{},
    92  	})
    93  }