github.com/traefik/yaegi@v0.15.1/stdlib/go1_19_strings.go (about)

     1  // Code generated by 'yaegi extract strings'. DO NOT EDIT.
     2  
     3  //go:build go1.19 && !go1.20
     4  // +build go1.19,!go1.20
     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  		"Clone":          reflect.ValueOf(strings.Clone),
    17  		"Compare":        reflect.ValueOf(strings.Compare),
    18  		"Contains":       reflect.ValueOf(strings.Contains),
    19  		"ContainsAny":    reflect.ValueOf(strings.ContainsAny),
    20  		"ContainsRune":   reflect.ValueOf(strings.ContainsRune),
    21  		"Count":          reflect.ValueOf(strings.Count),
    22  		"Cut":            reflect.ValueOf(strings.Cut),
    23  		"EqualFold":      reflect.ValueOf(strings.EqualFold),
    24  		"Fields":         reflect.ValueOf(strings.Fields),
    25  		"FieldsFunc":     reflect.ValueOf(strings.FieldsFunc),
    26  		"HasPrefix":      reflect.ValueOf(strings.HasPrefix),
    27  		"HasSuffix":      reflect.ValueOf(strings.HasSuffix),
    28  		"Index":          reflect.ValueOf(strings.Index),
    29  		"IndexAny":       reflect.ValueOf(strings.IndexAny),
    30  		"IndexByte":      reflect.ValueOf(strings.IndexByte),
    31  		"IndexFunc":      reflect.ValueOf(strings.IndexFunc),
    32  		"IndexRune":      reflect.ValueOf(strings.IndexRune),
    33  		"Join":           reflect.ValueOf(strings.Join),
    34  		"LastIndex":      reflect.ValueOf(strings.LastIndex),
    35  		"LastIndexAny":   reflect.ValueOf(strings.LastIndexAny),
    36  		"LastIndexByte":  reflect.ValueOf(strings.LastIndexByte),
    37  		"LastIndexFunc":  reflect.ValueOf(strings.LastIndexFunc),
    38  		"Map":            reflect.ValueOf(strings.Map),
    39  		"NewReader":      reflect.ValueOf(strings.NewReader),
    40  		"NewReplacer":    reflect.ValueOf(strings.NewReplacer),
    41  		"Repeat":         reflect.ValueOf(strings.Repeat),
    42  		"Replace":        reflect.ValueOf(strings.Replace),
    43  		"ReplaceAll":     reflect.ValueOf(strings.ReplaceAll),
    44  		"Split":          reflect.ValueOf(strings.Split),
    45  		"SplitAfter":     reflect.ValueOf(strings.SplitAfter),
    46  		"SplitAfterN":    reflect.ValueOf(strings.SplitAfterN),
    47  		"SplitN":         reflect.ValueOf(strings.SplitN),
    48  		"Title":          reflect.ValueOf(strings.Title),
    49  		"ToLower":        reflect.ValueOf(strings.ToLower),
    50  		"ToLowerSpecial": reflect.ValueOf(strings.ToLowerSpecial),
    51  		"ToTitle":        reflect.ValueOf(strings.ToTitle),
    52  		"ToTitleSpecial": reflect.ValueOf(strings.ToTitleSpecial),
    53  		"ToUpper":        reflect.ValueOf(strings.ToUpper),
    54  		"ToUpperSpecial": reflect.ValueOf(strings.ToUpperSpecial),
    55  		"ToValidUTF8":    reflect.ValueOf(strings.ToValidUTF8),
    56  		"Trim":           reflect.ValueOf(strings.Trim),
    57  		"TrimFunc":       reflect.ValueOf(strings.TrimFunc),
    58  		"TrimLeft":       reflect.ValueOf(strings.TrimLeft),
    59  		"TrimLeftFunc":   reflect.ValueOf(strings.TrimLeftFunc),
    60  		"TrimPrefix":     reflect.ValueOf(strings.TrimPrefix),
    61  		"TrimRight":      reflect.ValueOf(strings.TrimRight),
    62  		"TrimRightFunc":  reflect.ValueOf(strings.TrimRightFunc),
    63  		"TrimSpace":      reflect.ValueOf(strings.TrimSpace),
    64  		"TrimSuffix":     reflect.ValueOf(strings.TrimSuffix),
    65  
    66  		// type definitions
    67  		"Builder":  reflect.ValueOf((*strings.Builder)(nil)),
    68  		"Reader":   reflect.ValueOf((*strings.Reader)(nil)),
    69  		"Replacer": reflect.ValueOf((*strings.Replacer)(nil)),
    70  	}
    71  }