github.com/switchupcb/yaegi@v0.10.2/stdlib/go1_17_strings.go (about)

     1  // Code generated by 'yaegi extract strings'. DO NOT EDIT.
     2  
     3  //go:build go1.17
     4  // +build go1.17
     5  
     6  package stdlib
     7  
     8  import (
     9  	"reflect"
    10  	"strings"
    11  )
    12  
    13  func init() {
    14  	Symbols["strings/strings"] = map[string]reflect.Value{
    15  		// function, constant and variable definitions
    16  		"Compare":        reflect.ValueOf(strings.Compare),
    17  		"Contains":       reflect.ValueOf(strings.Contains),
    18  		"ContainsAny":    reflect.ValueOf(strings.ContainsAny),
    19  		"ContainsRune":   reflect.ValueOf(strings.ContainsRune),
    20  		"Count":          reflect.ValueOf(strings.Count),
    21  		"EqualFold":      reflect.ValueOf(strings.EqualFold),
    22  		"Fields":         reflect.ValueOf(strings.Fields),
    23  		"FieldsFunc":     reflect.ValueOf(strings.FieldsFunc),
    24  		"HasPrefix":      reflect.ValueOf(strings.HasPrefix),
    25  		"HasSuffix":      reflect.ValueOf(strings.HasSuffix),
    26  		"Index":          reflect.ValueOf(strings.Index),
    27  		"IndexAny":       reflect.ValueOf(strings.IndexAny),
    28  		"IndexByte":      reflect.ValueOf(strings.IndexByte),
    29  		"IndexFunc":      reflect.ValueOf(strings.IndexFunc),
    30  		"IndexRune":      reflect.ValueOf(strings.IndexRune),
    31  		"Join":           reflect.ValueOf(strings.Join),
    32  		"LastIndex":      reflect.ValueOf(strings.LastIndex),
    33  		"LastIndexAny":   reflect.ValueOf(strings.LastIndexAny),
    34  		"LastIndexByte":  reflect.ValueOf(strings.LastIndexByte),
    35  		"LastIndexFunc":  reflect.ValueOf(strings.LastIndexFunc),
    36  		"Map":            reflect.ValueOf(strings.Map),
    37  		"NewReader":      reflect.ValueOf(strings.NewReader),
    38  		"NewReplacer":    reflect.ValueOf(strings.NewReplacer),
    39  		"Repeat":         reflect.ValueOf(strings.Repeat),
    40  		"Replace":        reflect.ValueOf(strings.Replace),
    41  		"ReplaceAll":     reflect.ValueOf(strings.ReplaceAll),
    42  		"Split":          reflect.ValueOf(strings.Split),
    43  		"SplitAfter":     reflect.ValueOf(strings.SplitAfter),
    44  		"SplitAfterN":    reflect.ValueOf(strings.SplitAfterN),
    45  		"SplitN":         reflect.ValueOf(strings.SplitN),
    46  		"Title":          reflect.ValueOf(strings.Title),
    47  		"ToLower":        reflect.ValueOf(strings.ToLower),
    48  		"ToLowerSpecial": reflect.ValueOf(strings.ToLowerSpecial),
    49  		"ToTitle":        reflect.ValueOf(strings.ToTitle),
    50  		"ToTitleSpecial": reflect.ValueOf(strings.ToTitleSpecial),
    51  		"ToUpper":        reflect.ValueOf(strings.ToUpper),
    52  		"ToUpperSpecial": reflect.ValueOf(strings.ToUpperSpecial),
    53  		"ToValidUTF8":    reflect.ValueOf(strings.ToValidUTF8),
    54  		"Trim":           reflect.ValueOf(strings.Trim),
    55  		"TrimFunc":       reflect.ValueOf(strings.TrimFunc),
    56  		"TrimLeft":       reflect.ValueOf(strings.TrimLeft),
    57  		"TrimLeftFunc":   reflect.ValueOf(strings.TrimLeftFunc),
    58  		"TrimPrefix":     reflect.ValueOf(strings.TrimPrefix),
    59  		"TrimRight":      reflect.ValueOf(strings.TrimRight),
    60  		"TrimRightFunc":  reflect.ValueOf(strings.TrimRightFunc),
    61  		"TrimSpace":      reflect.ValueOf(strings.TrimSpace),
    62  		"TrimSuffix":     reflect.ValueOf(strings.TrimSuffix),
    63  
    64  		// type definitions
    65  		"Builder":  reflect.ValueOf((*strings.Builder)(nil)),
    66  		"Reader":   reflect.ValueOf((*strings.Reader)(nil)),
    67  		"Replacer": reflect.ValueOf((*strings.Replacer)(nil)),
    68  	}
    69  }